<!DOCTYPE html>
<!-- saved from url=(0115)https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&viewFallbackFrom=net-5.0 -->
<html class="hasSidebar hasPageActions hasBreadcrumb reference has-default-focus js-focus-visible theme-light" lang="zh-cn" dir="ltr" data-css-variable-support="true" data-authenticated="false" data-auth-status-determined="true" data-target="docs" x-ms-format-detection="none" data-js-focus-visible=""><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta property="og:title" content="Route 类 (System.Web.Routing)">
	<meta property="og:type" content="website">
	<meta property="og:url" content="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route">
			<meta property="og:description" content="提供用于定义路由和获取有关路由的信息的属性和方法。Provides properties and methods for defining a route and for obtaining information about the route. ">
		<meta property="og:image" content="https://docs.microsoft.com/en-us/media/logos/logo-ms-social.png">
		<meta property="og:image:alt" content="Microsoft Logo">

	<meta name="twitter:card" content="summary">
	<meta name="twitter:site" content="@docsmsft">

	<meta name="color-scheme" content="light">


	<meta name="monikers" content="netframework-3.5">
<meta name="monikers" content="netframework-4.0">
<meta name="monikers" content="netframework-4.5">
<meta name="monikers" content="netframework-4.5.1">
<meta name="monikers" content="netframework-4.5.2">
<meta name="monikers" content="netframework-4.6">
<meta name="monikers" content="netframework-4.6.1">
<meta name="monikers" content="netframework-4.6.2">
<meta name="monikers" content="netframework-4.7">
<meta name="monikers" content="netframework-4.7.1">
<meta name="monikers" content="netframework-4.7.2">
<meta name="monikers" content="netframework-4.8">
<meta name="namespace" content="System.Web.Routing">
<meta name="APILocation" content="System.Web.dll">
<meta name="APILocation" content="System.Web.Routing.dll">
<meta name="APIName" content="System.Web.Routing.Route">
<meta name="APIType" content="Assembly">
<meta name="apiPlatform" content="dotnet">
<meta name="author" content="scottaddie">
<meta name="bilingual_type" content="hover over">
<meta name="breadcrumb_path" content="/dotnet/breadcrumb/toc.json">
<meta name="depot_name" content="VS.dotnet-api-docs">
<meta name="document_id" content="e520ec0e-b7f7-4679-eec1-acbdf9154138">
<meta name="document_version_independent_id" content="b9b85314-835c-768c-5aaf-e0dd3c062213">
<meta name="enable_loc_sxs" content="true">
<meta name="gitcommit" content="https://github.com/dotnet/dotnet-api-docs.zh-cn/blob/6aec8fa5f72fe7d25a8563bfc9e62d44967b1ad9/xml/System.Web.Routing/Route.xml">
<meta name="locale" content="zh-cn">
<meta name="ms.author" content="dotnetcontent">
<meta name="ms.contentlocale" content="zh-CN">
<meta name="ms.date" content="04/30/2018">
<meta name="ms.lasthandoff" content="07/21/2020">
<meta name="ms.locfileid" content="86844730">
<meta name="ms.openlocfilehash" content="96f9c6138c7bbf61dc19188fb777e232eb91246c">
<meta name="ms.prod" content="dotnet-api">
<meta name="ms.sourcegitcommit" content="b53d35b4a410c949742abd4c6a989d1af5357bca">
<meta name="ms.technology" content="system.web">
<meta name="ms.topic" content="managed-reference">
<meta name="ms.translationtype" content="MT">
<meta name="original_content_git_url" content="https://github.com/dotnet/dotnet-api-docs.zh-cn/blob/live-sxs/xml/System.Web.Routing/Route.xml">
<meta name="search.ms_docsetname" content="dotnet-api-docs">
<meta name="search.ms_product" content="VS">
<meta name="search.ms_sitename" content="Docs">
<meta name="site_name" content="Docs">
<meta name="TopicType" content="apiref">
<meta name="uhfHeaderId" content="MSDocsHeader-DotNet">
<meta name="updated_at" content="2020-08-27 11:15 AM">
<meta name="page_type" content="dotnet">
<meta name="page_kind" content="class">
<meta name="ms.assetid" content="System.Web.Routing.Route">
<meta name="description" content="提供用于定义路由和获取有关路由的信息的属性和方法。Provides properties and methods for defining a route and for obtaining information about the route. ">
<meta name="toc_rel" content="_splitted/system.web.routing/toc.json">
<meta name="search.mshattr.devlang" content="csharp vb cpp fsharp">


	<meta name="scope" content=".NET">
<link href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route" rel="canonical">
	<title>Route 类 (System.Web.Routing) | Microsoft Docs</title>

		<link rel="stylesheet" href="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/c4247d81.site-ltr.css">

	<link rel="stylesheet" href="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/410307e1.reference.css">


	<script async="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/saved_resource"></script><script async="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/saved_resource(1)"></script><script async="" defer="" crossorigin="anonymous" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/lux.js.下载"></script><script async="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/analytics.js.下载"></script><script id="msdocs-script">
	var msDocs = {
		data: {
			timeOrigin: Date.now(),
			contentLocale: 'zh-cn',
			contentDir: 'ltr',
			userLocale: 'zh-cn',
			userDir: 'ltr',
			pageTemplate: 'Reference',
			brand: '',
			context: {

			},
			hasBinaryRating: true,
			hasGithubIssues: false,
			showFeedbackReport: false,
			enableTutorialFeedback: false,
			feedbackSystem: 'None',
			feedbackGitHubRepo: '',
			feedbackProductUrl: '',
			contentGitUrl: 'https://github.com/dotnet/dotnet-api-docs.zh-cn/blob/live/xml/System.Web.Routing/Route.xml',
			defaultDevLang: 'csharp',
			extendBreadcrumb: true,
			isEditDisplayable: false,
			hideViewSource: false,
			hasPageActions: true,
			hasBookmark: true,
			hasShare: true,
			hasRecommendations: false,
			contributors: [
						{ name: "olprod", url: "https://github.com/olprod" }
],
		},
		functions:{}
	};
	</script>
	<script src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/wcp-consent.js.下载"></script>
	<script src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/jsll-4.js.下载"></script>
	<script>window.jsllAwa = window.awa;</script>
	<script nomodule="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/bluebird.min.js.下载" integrity="sha384-aD4BDeDGeLXLpPK4yKeqtZQa9dv4a/7mQ+4L5vwshIYH1Mc2BrXvHd32iHzYCQy5" crossorigin="anonymous"></script>
	<script nomodule="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/fetch.umd.min.js.下载" integrity="sha384-EQIXrC5K2+7X8nGgLkB995I0/6jfAvvyG1ieZ+WYGxgJHFMD/alsG9fSDWvzb5Y1" crossorigin="anonymous"></script>
	<script nomodule="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/template.min.js.下载" integrity="sha384-1zKzI6ldTVHMU7n0W2HpE/lhHI+UG4D9IIaxbj3kT2UhCWicdTuJkTtnKuu0CQzN" crossorigin="anonymous"></script>
	<script nomodule="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/url.min.js.下载" integrity="sha384-vn7xBMtpSTfzaTRWxj0kVq0UcsbBrTOgZ/M1ISHqe1V358elYva+lfiEC+T8jLPc" crossorigin="anonymous"></script>
	<script src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/f0a172e9.index-polyfills.js.下载"></script>
		<script src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/qrious.min.js.下载" integrity="sha384-h/SmU/qxwYnRlzklg9PKWpDwyma9UmKuOB//Pz6Cov5KkEqcaFF0vod43/XhoeyJ" crossorigin="anonymous"></script>

		<script src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/6a6ed3cd.index-docs.js.下载"></script><style>
		[data-moniker]:not([data-moniker~='netframework-4.8']) {
			display: none !important;
		}
	</style>
<script async="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/t.js.下载"></script><script async="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/t.js(1).下载"></script><style type="text/css" media="print">.usabilla_live_button_container { display: none; }</style><script async="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/t.js(2).下载"></script><script async="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/t.js(3).下载"></script><script async="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/t.js(4).下载"></script><script async="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/t.js(5).下载"></script><script async="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/t.js(6).下载"></script><script async="" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/t.js(7).下载"></script><script async="" src="https://web.vortex.data.microsoft.com/collect/v1/t.js?ver=%272.1%27&amp;name=%27Ms.Webi.PageAction%27&amp;time=%272021-03-18T05%3A59%3A17.339Z%27&amp;os=%27Windows%27&amp;appId=%27JS%3ADocs%27&amp;-ver=%271.0%27&amp;-impressionGuid=%27d196c9b9-a2a1-46ff-aa89-adc591c5c532%27&amp;-pageName=%27e520ec0e-b7f7-4679-eec1-acbdf9154138%27&amp;-uri=%27https%3A%2F%2Fdocs.microsoft.com%2Fzh-cn%2Fdotnet%2Fapi%2Fsystem.web.routing.route%3Fview%3Dnetframework-4.8%26viewFallbackFrom%3Dnet-5.0%27&amp;-pageTags=%27%7B%22author%22%3A%22scottaddie%22%2C%22depotname%22%3A%22VS.dotnet-api-docs%22%2C%22document_version_independent_id%22%3A%22b9b85314-835c-768c-5aaf-e0dd3c062213%22%2C%22gitcommit%22%3A%22https%3A%2F%2Fgithub.com%2Fdotnet%2Fdotnet-api-docs.zh-cn%2Fblob%2F6aec8fa5f72fe7d25a8563bfc9e62d44967b1ad9%2Fxml%2FSystem.Web.Routing%2FRoute.xml%22%2C%22pgauth%22%3A%22dotnetcontent%22%2C%22date%22%3A%2204%2F30%2F2018%22%2C%22lasthandoff%22%3A%2207%2F21%2F2020%22%2C%22locfileid%22%3A%2286844730%22%2C%22product%22%3A%22dotnet-api%22%2C%22technology%22%3A%22system.web%22%2C%22pgtop%22%3A%22managed-reference%22%2C%22translationtype%22%3A%22MT%22%2C%22giturl%22%3A%22https%3A%2F%2Fgithub.com%2Fdotnet%2Fdotnet-api-docs.zh-cn%2Fblob%2Flive-sxs%2Fxml%2FSystem.Web.Routing%2FRoute.xml%22%2C%22publishtime%22%3A%222020-08-27%2011%3A15%20AM%22%2C%22asst%22%3A%22System.Web.Routing.Route%22%2C%22contentlocale%22%3A%22zh-cn%22%2C%22highContrast%22%3A%22false%22%2C%22metaTags%22%3A%7B%7D%7D%27&amp;-contentVer=%272.0%27&amp;-market=%27zh-cn%27&amp;-pageType=%27dotnet%27&amp;-actionType=%27O%27&amp;-behavior=300&amp;-content=%27%5B%7B%22event%22%3A%22page-focus-changed%22%2C%22value%22%3A%22blur%22%7D%5D%27&amp;*baseType=%27Ms.Content.PageAction%27&amp;*timeToAction=10757576&amp;*cookieEnabled=true&amp;*isJs=true&amp;*title=%27Route%20%E7%B1%BB%20(System.Web.Routing)%20%7C%20Microsoft%20Docs%27&amp;*isLoggedIn=false&amp;*isManual=true&amp;ext-javascript-ver=%271.1%27&amp;ext-javascript-libVer=%274.3.4%27&amp;ext-javascript-domain=%27docs.microsoft.com%27&amp;ext-javascript-msfpc=%27GUID%3Dbe533a6349374a19a3147b6350f4741a%26HASH%3Dbe53%26LV%3D202102%26V%3D4%26LU%3D1614099774713%27&amp;ext-javascript-userConsent=true&amp;ext-user-localId=%27t%3A01CDCD9B69DF681D0993C27C6DDF6E74%27&amp;$mscomCookies=false"></script></head>

<body lang="zh-cn" dir="ltr"><div style="display: none;" id="lightningjs-usabilla_live"><div><iframe frameborder="0" id="lightningjs-frame-usabilla_live" src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/saved_resource.html"></iframe></div></div>
	<div class="header-holder has-default-focus">
		<a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#main" class="skip-to-main-link has-outline-color-text visually-hidden-until-focused is-fixed has-inner-focus focus-visible has-top-zero has-left-zero has-right-zero has-padding-medium has-text-centered has-body-background-medium" tabindex="1">跳转至主内容</a>
		
		<div id="ignite-banner-holder" class="has-default-focus has-overflow-hidden"></div>
		
		<div hidden="" id="cookie-consent-holder"></div>
		<!-- liquid-tag banners global -->
		<div id="headerAreaHolder" data-bi-name="header">
<header role="banner" itemscope="itemscope" itemtype="http://schema.org/Organization"><!----> <div class="nav-bar"><!---->  <div class="nav-bar-brand">
		<a class="nav-bar-button" itemprop="url" href="https://www.microsoft.com/" aria-label="Microsoft">
			<div class="nav-bar-logo" role="presentation" aria-hidden="true" itemprop="logo" itemscope="itemscope">
				<svg xmlns="http://www.w3.org/2000/svg" width="108" height="23" viewBox="72 72 337 74" preserveAspectRatio="xMidYMin slice">
					<g data-name="MS-symbol">
						<clippath id="a">
							<path transform="matrix(1 0 0 -1 0 216)" d="M0 216h482V0H0z"></path>
						</clippath>
						<g clip-path="url(#a)">
							<path class="has-fill-current-color has-text-subtle" d="M394.942 104.59h-10.858v25.003h-7.38V104.59h-5.182v-5.965h5.182v-4.308c0-3.254 1.06-5.92 3.178-7.998 2.12-2.079 4.835-3.118 8.15-3.118.882 0 1.666.045 2.35.135a9.37 9.37 0 011.806.407v6.296c-.24-.14-.663-.31-1.265-.512-.603-.2-1.296-.3-2.078-.3-1.528 0-2.702.476-3.526 1.43-.824.954-1.235 2.365-1.235 4.232v3.736h10.858v-6.959l7.321-2.229v9.188h7.381v5.965h-7.38v14.49c0 1.91.345 3.254 1.038 4.037.693.783 1.782 1.175 3.27 1.175.42 0 .927-.1 1.52-.3a7.178 7.178 0 001.552-.724v6.025c-.463.261-1.23.502-2.305.723a15.742 15.742 0 01-3.178.331c-3.073 0-5.378-.817-6.914-2.455-1.537-1.637-2.305-4.102-2.305-7.396zm-48.407 9.73c0 3.233.733 5.703 2.2 7.411 1.465 1.707 3.564 2.56 6.295 2.56 2.652 0 4.67-.853 6.055-2.56 1.386-1.708 2.08-4.238 2.08-7.592 0-3.334-.719-5.849-2.155-7.547-1.436-1.697-3.45-2.545-6.04-2.545-2.67 0-4.745.888-6.22 2.666-1.477 1.777-2.215 4.313-2.215 7.607m-7.592.24c0-5.12 1.446-9.177 4.338-12.17 2.892-2.993 6.91-4.489 12.05-4.489 4.841 0 8.621 1.441 11.343 4.323 2.721 2.883 4.082 6.774 4.082 11.674 0 5.021-1.447 9.018-4.338 11.99-2.892 2.973-6.829 4.458-11.81 4.458-4.8 0-8.61-1.41-11.432-4.232-2.822-2.82-4.233-6.673-4.233-11.554m-16.417-7.802c0 1.045.331 1.863.994 2.456.662.592 2.128 1.34 4.398 2.243 2.912 1.166 4.956 2.476 6.131 3.932 1.175 1.456 1.762 3.22 1.762 5.287 0 2.912-1.12 5.252-3.359 7.02-2.24 1.767-5.267 2.65-9.083 2.65-1.285 0-2.706-.155-4.263-.467-1.556-.31-2.877-.707-3.96-1.19v-7.169a17.945 17.945 0 004.277 2.198c1.526.543 2.911.814 4.157.814 1.647 0 2.862-.23 3.645-.693.784-.46 1.175-1.235 1.175-2.319 0-1.005-.406-1.853-1.22-2.546-.813-.693-2.355-1.492-4.624-2.395-2.69-1.125-4.599-2.39-5.724-3.796-1.125-1.406-1.687-3.193-1.687-5.362 0-2.792 1.11-5.086 3.33-6.884 2.217-1.797 5.095-2.696 8.63-2.696 1.084 0 2.3.12 3.645.361 1.346.242 2.47.553 3.374.934v6.93c-.964-.644-2.089-1.195-3.374-1.658-1.286-.462-2.56-.693-3.826-.693-1.386 0-2.465.271-3.238.813-.774.543-1.16 1.286-1.16 2.23m-35.066 7.562c0 3.233.733 5.703 2.2 7.411 1.465 1.707 3.564 2.56 6.295 2.56 2.652 0 4.67-.853 6.055-2.56 1.386-1.708 2.08-4.238 2.08-7.592 0-3.334-.719-5.849-2.155-7.547-1.436-1.697-3.449-2.545-6.039-2.545-2.672 0-4.745.888-6.222 2.666-1.476 1.777-2.214 4.313-2.214 7.607m-7.592.24c0-5.12 1.446-9.177 4.338-12.17 2.893-2.993 6.91-4.489 12.051-4.489 4.84 0 8.621 1.441 11.342 4.323 2.721 2.883 4.082 6.774 4.082 11.674 0 5.021-1.446 9.018-4.338 11.99-2.892 2.973-6.828 4.458-11.809 4.458-4.8 0-8.61-1.41-11.433-4.232-2.822-2.82-4.233-6.673-4.233-11.554m-3.136-16.448c.582 0 1.105.041 1.567.121.462.08.853.18 1.175.301v7.38c-.382-.28-.939-.546-1.672-.798-.733-.25-1.622-.376-2.666-.376-1.788 0-3.299.753-4.534 2.26-1.235 1.505-1.853 3.825-1.853 6.958v15.635h-7.29V98.624h7.29v4.88h.12c.663-1.687 1.667-3.007 3.013-3.96 1.346-.954 2.962-1.432 4.85-1.432m-27.956 26.18c1.084 0 2.28-.25 3.585-.754a15.06 15.06 0 003.615-1.988v6.778c-1.165.663-2.485 1.165-3.962 1.506-1.475.342-3.098.512-4.865.512-4.559 0-8.265-1.44-11.116-4.323-2.852-2.88-4.278-6.562-4.278-11.04 0-4.98 1.456-9.083 4.37-12.307 2.91-3.224 7.037-4.835 12.38-4.835 1.366 0 2.746.176 4.143.527 1.395.352 2.504.758 3.328 1.22v6.99c-1.125-.824-2.274-1.462-3.45-1.914a9.966 9.966 0 00-3.599-.678c-2.872 0-5.192.934-6.959 2.802-1.768 1.868-2.652 4.388-2.652 7.562 0 3.132.85 5.573 2.546 7.32 1.697 1.748 4.002 2.621 6.914 2.621m-22.112 5.302h-7.29V98.624h7.29zm-8.044-39.916c0-1.205.437-2.214 1.311-3.028.874-.813 1.913-1.22 3.118-1.22 1.285 0 2.35.417 3.193 1.25.844.834 1.266 1.833 1.266 2.998 0 1.185-.432 2.18-1.296 2.982-.864.804-1.918 1.205-3.163 1.205-1.246 0-2.295-.406-3.148-1.219-.854-.815-1.28-1.803-1.28-2.968m-6.274-3.284v43.2h-7.5v-33.86h-.12l-13.408 33.86h-4.97l-13.738-33.86h-.09v33.86h-6.929v-43.2h10.755l12.412 32.024h.18l13.105-32.024z"></path>
							<path d="M106.214 106.214H71.996V71.996h34.218z" fill="#f25022"></path>
							<path d="M143.993 106.214h-34.218V71.996h34.218z" fill="#7fba00"></path>
							<path d="M106.214 143.993H71.996v-34.218h34.218z" fill="#00a4ef"></path>
							<path d="M143.993 143.993h-34.218v-34.218h34.218z" fill="#ffb900"></path>
						</g>
					</g>
				</svg>
			</div>
		</a>
	</div> 
				
		<div class="nav-bar-item is-hidden-tablet">
			<div class="nav-bar-menu">
				<button class="nav-bar-button is-title" title="全球导航" aria-expanded="false">
					<span class="nav-bar-menu-title"><!---->文档<!----></span>
					<div class="nav-bar-burger">
						<span></span>
						<span></span>
						<span></span>
						<span class="nav-bar-burger-label"><!---->全球导航<!----></span>
					</div>
				</button>
			</div>
		</div>
	
				
		<nav class="nav-bar-nav" role="navigation" aria-label="全球">
			<ul class="nav-bar-nav-list">
				
		<li class="nav-bar-item is-category">
			<a class="nav-bar-button is-title has-hover-underline" itemprop="url" href="https://docs.microsoft.com/zh-cn/">
				<span><!---->Docs<!----></span>
			</a>
		</li>
	
				<!----> <li class="nav-bar-item">
				<a class=" nav-bar-button has-hover-underline is-active" href="https://docs.microsoft.com/zh-cn/documentation">
					<span><!---->文档<!----></span>
				</a>
		  </li><!----> <li class="nav-bar-item">
				<a class=" nav-bar-button has-hover-underline " href="https://docs.microsoft.com/zh-cn/learn/">
					<span><!---->Learn<!----></span>
				</a>
		  </li><!----> <li class="nav-bar-item">
				<a class=" nav-bar-button has-hover-underline " href="https://docs.microsoft.com/zh-cn/answers/products/">
					<span><!---->Q&amp;A<!----></span>
				</a>
		  </li><!----> <li class="nav-bar-item">
				<a class=" nav-bar-button has-hover-underline " href="https://docs.microsoft.com/zh-cn/samples/browse/">
					<span><!---->代码示例<!----></span>
				</a>
		  </li><!----> <li class="dropdown nav-bar-item" hidden="">
		<button aria-expanded="false" class="dropdown-trigger nav-bar-button  has-hover-underline" aria-controls="ax-96">
			<span><!---->更多<!----></span>
			<span class="nav-bar-button-chevron" aria-hidden="true">
				<span class="docon docon-chevron-down-light expanded-indicator"></span>
			</span>
		</button>
		<ul class="dropdown-menu" id="ax-96" aria-label="更多">
			<!---->
				<li class="nav-bar-item" hidden="">
					<a class=" nav-bar-button is-active" href="https://docs.microsoft.com/zh-cn/documentation"><!---->文档<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item" hidden="">
					<a class=" nav-bar-button " href="https://docs.microsoft.com/zh-cn/learn/"><!---->Learn<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item" hidden="">
					<a class=" nav-bar-button " href="https://docs.microsoft.com/zh-cn/answers/products/"><!---->Q&amp;A<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item" hidden="">
					<a class=" nav-bar-button " href="https://docs.microsoft.com/zh-cn/samples/browse/"><!---->代码示例<!----></a>
				</li>
		  <!---->
		</ul>
	</li><!---->
			</ul>
		</nav>
	
				<span class="nav-bar-spacer"></span>
				
		<div class="nav-bar-search " id="ax-97" hidden="">
			
		<form class="nav-bar-search-form" method="GET" name="nav-bar-search-form" role="search" id="nav-bar-search-form" aria-label="搜索" aria-expanded="false" action="https://docs.microsoft.com/zh-cn/search/">
			<div class="autocomplete" data-bi-name="autocomplete"><!----> <div class="control ">
				<input role="combobox" maxlength="100" aria-autocomplete="list" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" id="site-search-input" class="autocomplete-input input   is-small" type="search" name="terms" aria-expanded="false" aria-owns="ax-98-listbox" aria-activedescendant="" aria-label="搜索" placeholder="搜索">

				<span aria-hidden="true" class="icon is-small is-left" hidden="">
					<span class="has-text-primary docon docon-undefined"></span>
				</span>

				<span aria-hidden="true" class="autocomplete-loader loader has-text-primary " hidden=""></span>
			</div>

			<ul class="autocomplete-suggestions is-vertically-scrollable" role="listbox" id="ax-98-listbox" aria-label="site-search-input-suggestions" hidden="">
				
			</ul><!----></div>
			<!-- mobile safari will not dispatch submit event unless there's a submit button that is not display:none -->
			<button type="submit" class="visually-hidden" tabindex="-1" aria-hidden="true"></button>
			<input name="category" hidden="" value="Reference">
			<input name="scope" hidden="" value=".NET">
			
			
		</form>
	
		</div>
		
					<div class="nav-bar-search">
						<!-- hidden when the width drops to tablet -->
						
		<form class="nav-bar-search-form" method="GET" name="nav-bar-search-form" role="search" id="nav-bar-search-form-desktop" aria-label="搜索" aria-expanded="false" action="https://docs.microsoft.com/zh-cn/search/">
			<div class="autocomplete" data-bi-name="autocomplete"><!----> <div class="control has-icons-left">
				<input role="combobox" maxlength="100" aria-autocomplete="list" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" id="ax-99" class="autocomplete-input input control has-icons-left  is-small" type="search" name="terms" aria-expanded="false" aria-owns="ax-100-listbox" aria-activedescendant="" aria-label="搜索" placeholder="搜索">

				<span aria-hidden="true" class="icon is-small is-left">
					<span class="has-text-primary docon docon-search"></span>
				</span>

				<span aria-hidden="true" class="autocomplete-loader loader has-text-primary " hidden=""></span>
			</div>

			<ul class="autocomplete-suggestions is-vertically-scrollable" role="listbox" id="ax-100-listbox" aria-label="ax-99-suggestions" hidden="">
				
			</ul><!----></div>
			<!-- mobile safari will not dispatch submit event unless there's a submit button that is not display:none -->
			<button type="submit" class="visually-hidden" tabindex="-1" aria-hidden="true"></button>
			<input name="category" hidden="" value="Reference">
			<input name="scope" hidden="" value=".NET">
			
			
		</form>
	
					</div>
			  
		<div class="nav-bar-search " hidden="">
			<div class="nav-bar-search-form-expander">
				<button id="form-expander" class="nav-bar-button has-hover-underline " title="搜索" aria-expanded="false" aria-controls="ax-97">
					
		<span class="is-visually-hidden-mobile"><!---->搜索<!----></span>
		<span class="icon" aria-hidden="true">
			<span class="docon docon-search"></span>
		</span>
	
				</button>
			</div>
		</div>
	
				
		<div class="nav-bar-profile">
			
		<a class="docs-sign-in auth-status-determined not-authenticated" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#"> 登录 </a>
	 
		<div class="dropdown has-caret auth-status-determined authenticated">
			<button class="dropdown-trigger button-reset" aria-controls="user-menu" aria-expanded="false" aria-label="你的帐户">
				<figure class="image is-36x36">
					<img class="has-body-background-medium is-rounded" alt="" data-profile-property="avatarUrl">
				</figure>
			</button>
			<div class="dropdown-menu box has-flex-justify-content-start has-body-background" id="user-menu" role="menu">
				<div class="media is-user-dir">
					<div class="media-left">
						<figure class="image is-48x48" aria-hidden="true">
							<img class="has-body-background-medium is-rounded" aria-labelledby="displayName" data-profile-property="avatarUrl">
						</figure>
					</div>
					<div class="media-content">
						<p class="title is-size-large">
							<span id="displayName" class="is-inline-truncated has-max-width-200" data-profile-property="displayName"></span>
						</p>
						<p class="subtitle is-size-small has-margin-bottom-none">
							<span class="is-inline-truncated has-max-width-200" data-profile-property="upn"></span>
						</p>
					</div>
				</div>
				<ul class="has-padding-top-small has-padding-bottom-medium">
					<li class="has-padding-top-extra-small has-padding-bottom-extra-small">
						<a href="https://docs.microsoft.com/profile" data-profile-property="profileUrl"><!---->配置文件<!----></a>
					</li>
					<li class="has-padding-top-extra-small has-padding-bottom-extra-small">
						<a href="https://docs.microsoft.com/profile" data-profile-property="bookmarksUrl"><!---->书签<!----></a>
					</li>
					<li class="has-padding-top-extra-small has-padding-bottom-extra-small">
						<a href="https://docs.microsoft.com/profile" data-profile-property="collectionsUrl"><!---->集合<!----></a>
					</li>
					<li class="has-padding-top-extra-small">
						<a href="https://docs.microsoft.com/profile" data-profile-property="challengesUrl"><!---->挑战<!----></a>
					</li>
				</ul>
				<div class="has-border-top has-padding-top-medium">
					<a class="docs-sign-out" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#"><!---->注销<!----></a>
				</div>
			</div>
		</div>
	
		</div>
	
			 <!----></div> <div class="nav-bar has-border-top is-hidden-mobile"><!----> 
		<a class="nav-bar-button is-title has-hover-underline" itemprop="url" href="https://docs.microsoft.com/dotnet/">
			<span>
				.NET
				
			</span>
		</a>
	 
		
		<nav class="nav-bar-nav" role="navigation" aria-label="站点">
			<ul class="nav-bar-nav-list">
				
				<!----> <li class="dropdown nav-bar-item">
		<button aria-expanded="false" class="dropdown-trigger nav-bar-button  has-hover-underline" aria-controls="ax-101">
			<span><!---->语言<!----></span>
			<span class="nav-bar-button-chevron" aria-hidden="true">
				<span class="docon docon-chevron-down-light expanded-indicator"></span>
			</span>
		</button>
		<ul class="dropdown-menu" id="ax-101" aria-label="语言">
			<!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/csharp/"><!---->C#<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/fsharp/"><!---->F#<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/visual-basic/"><!---->Visual Basic<!----></a>
				</li>
		  <!---->
		</ul>
	</li><!----> <li class="dropdown nav-bar-item">
		<button aria-expanded="false" class="dropdown-trigger nav-bar-button  has-hover-underline" aria-controls="ax-102">
			<span><!---->工作负载<!----></span>
			<span class="nav-bar-button-chevron" aria-hidden="true">
				<span class="docon docon-chevron-down-light expanded-indicator"></span>
			</span>
		</button>
		<ul class="dropdown-menu" id="ax-102" aria-label="工作负载">
			<!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/aspnet/core/"><!---->Web<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/xamarin/"><!---->移动<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/azure/"><!---->云<!----></a>
				</li>
		  <!----> <li class="dropdown nav-bar-item">
		<button aria-expanded="false" class="dropdown-trigger nav-bar-button  " aria-controls="ax-103">
			<span><!---->桌面<!----></span>
			<span class="nav-bar-button-chevron" aria-hidden="true">
				<span class="docon docon-chevron-right-light "></span>
			</span>
		</button>
		<ul class="dropdown-menu" id="ax-103" aria-label="桌面">
			<!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/desktop-wpf/"><!---->Windows Presentation Foundation<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/framework/winforms/"><!---->Windows 窗体<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/windows/uwp/"><!---->通用 Windows 应用<!----></a>
				</li>
		  <!---->
		</ul>
	</li><!----> <li class="dropdown nav-bar-item">
		<button aria-expanded="false" class="dropdown-trigger nav-bar-button  " aria-controls="ax-104">
			<span><!---->机器学习和数据<!----></span>
			<span class="nav-bar-button-chevron" aria-hidden="true">
				<span class="docon docon-chevron-right-light "></span>
			</span>
		</button>
		<ul class="dropdown-menu" id="ax-104" aria-label="机器学习和数据">
			<!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/machine-learning/"><!---->ML.NET<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/spark/"><!---->.NET for Apache Spark<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/ef/"><!---->实体框架<!----></a>
				</li>
		  <!---->
		</ul>
	</li><!---->
		</ul>
	</li><!----> <li class="dropdown nav-bar-item">
		<button aria-expanded="false" class="dropdown-trigger nav-bar-button  has-hover-underline" aria-controls="ax-105">
			<span><!---->API<!----></span>
			<span class="nav-bar-button-chevron" aria-hidden="true">
				<span class="docon docon-chevron-down-light expanded-indicator"></span>
			</span>
		</button>
		<ul class="dropdown-menu" id="ax-105" aria-label="API">
			<!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/api/?view=netcore-3.1"><!---->.NET Core<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/api/?view=netframework-4.8"><!---->.NET Framework<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/api/?view=aspnetcore-3.1"><!---->ASP.NET<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/api/?view=ml-dotnet"><!---->ML.NET<!----></a>
				</li>
		  <!---->
		</ul>
	</li><!----> <li class="dropdown nav-bar-item">
		<button aria-expanded="false" class="dropdown-trigger nav-bar-button  has-hover-underline" aria-controls="ax-106">
			<span><!---->资源<!----></span>
			<span class="nav-bar-button-chevron" aria-hidden="true">
				<span class="docon docon-chevron-down-light expanded-indicator"></span>
			</span>
		</button>
		<ul class="dropdown-menu" id="ax-106" aria-label="资源">
			<!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://dotnet.microsoft.com/learn/dotnet/what-is-dotnet"><!---->什么是 .NET？<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://dotnet.microsoft.com/learn/dotnet/architecture-guides"><!---->.NET 体系结构指南<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://dotnet.microsoft.com/learn"><!---->学习材料<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://dotnet.microsoft.com/download"><!---->下载<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://dotnet.microsoft.com/platform/community"><!---->社区<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://dotnet.microsoft.com/platform/support"><!---->支持<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://devblogs.microsoft.com/dotnet/"><!---->博客<!----></a>
				</li>
		  <!---->
		</ul>
	</li><!----> <li class="dropdown nav-bar-item" hidden="">
		<button aria-expanded="false" class="dropdown-trigger nav-bar-button  has-hover-underline" aria-controls="ax-107">
			<span><!---->更多<!----></span>
			<span class="nav-bar-button-chevron" aria-hidden="true">
				<span class="docon docon-chevron-down-light expanded-indicator"></span>
			</span>
		</button>
		<ul class="dropdown-menu" id="ax-107" aria-label="更多">
			<!----> <li class="dropdown nav-bar-item" hidden="">
		<button aria-expanded="false" class="dropdown-trigger nav-bar-button  " aria-controls="ax-108">
			<span><!---->语言<!----></span>
			<span class="nav-bar-button-chevron" aria-hidden="true">
				<span class="docon docon-chevron-right-light "></span>
			</span>
		</button>
		<ul class="dropdown-menu" id="ax-108" aria-label="语言">
			<!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/csharp/"><!---->C#<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/fsharp/"><!---->F#<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/visual-basic/"><!---->Visual Basic<!----></a>
				</li>
		  <!---->
		</ul>
	</li><!----> <li class="dropdown nav-bar-item" hidden="">
		<button aria-expanded="false" class="dropdown-trigger nav-bar-button  " aria-controls="ax-109">
			<span><!---->工作负载<!----></span>
			<span class="nav-bar-button-chevron" aria-hidden="true">
				<span class="docon docon-chevron-right-light "></span>
			</span>
		</button>
		<ul class="dropdown-menu" id="ax-109" aria-label="工作负载">
			<!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/aspnet/core/"><!---->Web<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/xamarin/"><!---->移动<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/azure/"><!---->云<!----></a>
				</li>
		  <!----> <li class="dropdown nav-bar-item">
		<button aria-expanded="false" class="dropdown-trigger nav-bar-button  " aria-controls="ax-110">
			<span><!---->桌面<!----></span>
			<span class="nav-bar-button-chevron" aria-hidden="true">
				<span class="docon docon-chevron-right-light "></span>
			</span>
		</button>
		<ul class="dropdown-menu" id="ax-110" aria-label="桌面">
			<!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/desktop-wpf/"><!---->Windows Presentation Foundation<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/framework/winforms/"><!---->Windows 窗体<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/windows/uwp/"><!---->通用 Windows 应用<!----></a>
				</li>
		  <!---->
		</ul>
	</li><!----> <li class="dropdown nav-bar-item">
		<button aria-expanded="false" class="dropdown-trigger nav-bar-button  " aria-controls="ax-111">
			<span><!---->机器学习和数据<!----></span>
			<span class="nav-bar-button-chevron" aria-hidden="true">
				<span class="docon docon-chevron-right-light "></span>
			</span>
		</button>
		<ul class="dropdown-menu" id="ax-111" aria-label="机器学习和数据">
			<!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/machine-learning/"><!---->ML.NET<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/spark/"><!---->.NET for Apache Spark<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/ef/"><!---->实体框架<!----></a>
				</li>
		  <!---->
		</ul>
	</li><!---->
		</ul>
	</li><!----> <li class="dropdown nav-bar-item" hidden="">
		<button aria-expanded="false" class="dropdown-trigger nav-bar-button  " aria-controls="ax-112">
			<span><!---->API<!----></span>
			<span class="nav-bar-button-chevron" aria-hidden="true">
				<span class="docon docon-chevron-right-light "></span>
			</span>
		</button>
		<ul class="dropdown-menu" id="ax-112" aria-label="API">
			<!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/api/?view=netcore-3.1"><!---->.NET Core<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/api/?view=netframework-4.8"><!---->.NET Framework<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/api/?view=aspnetcore-3.1"><!---->ASP.NET<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://docs.microsoft.com/zh-cn/dotnet/api/?view=ml-dotnet"><!---->ML.NET<!----></a>
				</li>
		  <!---->
		</ul>
	</li><!----> <li class="dropdown nav-bar-item" hidden="">
		<button aria-expanded="false" class="dropdown-trigger nav-bar-button  " aria-controls="ax-113">
			<span><!---->资源<!----></span>
			<span class="nav-bar-button-chevron" aria-hidden="true">
				<span class="docon docon-chevron-right-light "></span>
			</span>
		</button>
		<ul class="dropdown-menu" id="ax-113" aria-label="资源">
			<!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://dotnet.microsoft.com/learn/dotnet/what-is-dotnet"><!---->什么是 .NET？<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://dotnet.microsoft.com/learn/dotnet/architecture-guides"><!---->.NET 体系结构指南<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://dotnet.microsoft.com/learn"><!---->学习材料<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://dotnet.microsoft.com/download"><!---->下载<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://dotnet.microsoft.com/platform/community"><!---->社区<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://dotnet.microsoft.com/platform/support"><!---->支持<!----></a>
				</li>
		  <!---->
				<li class="nav-bar-item">
					<a class="has-external-link-indicator nav-bar-button " href="https://devblogs.microsoft.com/dotnet/"><!---->博客<!----></a>
				</li>
		  <!---->
		</ul>
	</li><!---->
		</ul>
	</li><!---->
			</ul>
		</nav>
	
		<span class="nav-bar-spacer"></span>
		
		<ol class="nav-bar-list">
			 
		<li class="nav-bar-item ">
			<a class="button is-small is-primary " href="https://dotnet.microsoft.com/download">
				下载 .NET
			</a>
		</li>
	
		</ol>
	 
	 <!----></div> <!----></header>		</div>

						<div class="content-header uhf-container has-padding has-default-focus has-border-bottom-none" data-bi-name="content-header">
					<nav class="breadcrumb-holder has-padding-none has-padding-left-medium-tablet has-padding-right-medium-tablet has-padding-left-none-uhf-tablet has-padding-left-none-uhf-tablet has-padding-none-desktop has-flex-grow" data-bi-name="breadcrumb" itemscope="" itemtype="http://schema.org/BreadcrumbList" role="navigation" aria-label="痕迹">
						<ul id="page-breadcrumbs" class="breadcrumbs"><!----><!---->
			<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
				
							<a itemprop="item" href="https://docs.microsoft.com/zh-cn/?view=netframework-4.8">
								<span itemprop="name"><!---->Docs<!----></span>
							</a>
					  
				<meta itemprop="position" content="1">
			</li>
		<!---->
			<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
				
							<a itemprop="item" href="https://docs.microsoft.com/zh-cn/dotnet/?view=netframework-4.8">
								<span itemprop="name"><!---->.NET<!----></span>
							</a>
					  
				<meta itemprop="position" content="2">
			</li>
		<!---->
			<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
				
							<a itemprop="item" href="https://docs.microsoft.com/zh-cn/dotnet/api/?view=netframework-4.8">
								<span itemprop="name"><!---->.NET API 浏览器<!----></span>
							</a>
					  
				<meta itemprop="position" content="3">
			</li>
		<!---->
			<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
				
							<a itemprop="item" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing?view=netframework-4.8">
								<span itemprop="name"><!---->System.<wbr>Web.<wbr>Routing<!----></span>
							</a>
					  
				<meta itemprop="position" content="4">
			</li>
		<!---->
			<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
				<span itemprop="name"><!---->Route<!----></span>
				<meta itemprop="position" content="5">
			</li>
		<!----><!----></ul>
					</nav>
				<div class="content-header-controls">
					<button type="button" class="contents-button button" data-bi-name="contents-expand" aria-haspopup="true">
						<span class="icon"><span class="docon docon-menu" aria-hidden="true"></span></span>
						<span class="contents-expand-title">目录</span>
					</button>
					<button type="button" class="ap-collapse-behavior ap-expanded button" data-bi-name="ap-collapse" aria-controls="action-panel">
						<span class="icon"><span class="docon docon-exit-mode" aria-hidden="true"></span></span>
						<span>退出焦点模式</span>
					</button>
				</div>
				<div class="has-padding-none-tablet has-padding-medium is-size-small is-flex-touch has-flex-justify-content-space-between-touch has-flex-grow page-action-holder">
					<ul class="is-hidden-mobile action-list has-flex-justify-content-start has-flex-justify-content-end-tablet is-flex is-flex-row has-flex-wrap has-flex-grow is-unstyled">
						<li>

<div class="language dropdown has-caret is-inline-block has-border-mobile">
	<button class="dropdown-trigger button is-text is-small" aria-controls="language-menu" aria-expanded="false" title="语言" data-bi-name="language">
		<span class="icon is-hidden-desktop has-margin-none">
			<span class="docon docon-code-lang" aria-hidden="true"></span>
		</span>
		<span class="lang-title is-visually-hidden-touch has-flex-align-self-start is-hidden-portrait" dir="ltr">C#</span>
		<span class="icon is-hidden-mobile is-hidden-tablet-only" aria-hidden="true">
			<span class="docon docon-chevron-down-light expanded-indicator"></span>
		</span>
	</button>
	<div class="dropdown-menu has-padding-small language-selector" name="language-selector" role="menu">
		<ul data-bi-name="language-links" dir="ltr">
			<li>
				<a class="button is-text is-small is-fullwidth has-flex-justify-content-start" data-bi-name="lang-csharp" tabindex="0" aria-selected="true">C#</a>
			</li>
			<li>
				<a class="button is-text is-small is-fullwidth has-flex-justify-content-start" data-bi-name="lang-vb" tabindex="0" aria-selected="false">VB</a>
			</li>
			<li>
				<a class="button is-text is-small is-fullwidth has-flex-justify-content-start" data-bi-name="lang-cpp" tabindex="0" aria-selected="false">C++</a>
			</li>
			<li>
				<a class="button is-text is-small is-fullwidth has-flex-justify-content-start" data-bi-name="lang-fsharp" tabindex="0" aria-selected="false">F#</a>
			</li>
		</ul>
	</div>
</div>						</li>
						<li>
							<button type="button" class="bookmark button is-text has-inner-focus is-small is-icon-only-touch" data-list-type="bookmarks" data-bi-name="bookmark" title="添加 Route 类 (System.Web.Routing) | Microsoft Docs 的书签" aria-pressed="false">
								<span class="icon" aria-hidden="true">
									<span class="docon docon-single-bookmark"></span>
								</span>
								<span class="bookmark-status is-visually-hidden-touch is-hidden-portrait">书签</span>
							</button>
						</li>
								<li id="contenteditbtn" hidden="">
									<a href="https://github.com/dotnet/dotnet-api-docs.zh-cn/blob/live/xml/System.Web.Routing/Route.xml" class="button is-text has-inner-focus is-icon-only-touch is-small" title="编辑本文" data-bi-name="edit" data-original_content_git_url="https://github.com/dotnet/dotnet-api-docs.zh-cn/blob/live-sxs/xml/System.Web.Routing/Route.xml" data-original_content_git_url_template="{repo}/blob/{branch}/xml/System.Web.Routing/Route.xml" data-pr_repo="" data-pr_branch="">
									<span class="icon" aria-hidden="true">
										<span class="docon docon-edit-outline"></span>
									</span>
									<span class="is-visually-hidden-touch is-hidden-portrait">编辑</span>
								</a>
							</li>
						<li>
<div class="sharing dropdown has-caret">
	<button class="dropdown-trigger button is-text is-fullwidth has-flex-justify-content-start has-inner-focus is-small is-icon-only-touch" aria-controls="sharing-menu" aria-expanded="false" title="共享本文" data-bi-name="share">
		<span class="icon" aria-hidden="true">
			<span class="docon docon-sharing"></span>
		</span>
		<span class="is-visually-hidden-touch is-hidden-portrait">共享</span>
	</button>
	<div class="dropdown-menu has-padding-small" id="sharing-menu">
		<ul data-bi-name="share-links">
			<li>
				<a class="button is-text is-fullwidth has-flex-justify-content-start has-inner-focus is-small share-twitter" data-bi-name="twitter" href="https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Fdocs.microsoft.com%2Fzh-cn%2Fdotnet%2Fapi%2Fsystem.web.routing.route%3Fview%3Dnetframework-4.8%26viewFallbackFrom%3Dnet-5.0%26WT.mc_id%3Dtwitter&amp;text=Route%20%E7%B1%BB%20(System.Web.Routing)%20%7C%20Microsoft%20Docs&amp;tw_p=tweetbutton&amp;url=https%3A%2F%2Fdocs.microsoft.com%2Fzh-cn%2Fdotnet%2Fapi%2Fsystem.web.routing.route%3Fview%3Dnetframework-4.8%26viewFallbackFrom%3Dnet-5.0%26WT.mc_id%3Dtwitter">
					<span class="icon">
						<span class="docon docon-brand-twitter has-text-primary" aria-hidden="true"></span>
					</span>
					<span>Twitter</span>
				</a>
			</li>
			<li>
				<a class="button is-text is-fullwidth has-flex-justify-content-start has-inner-focus is-small share-linkedin" data-bi-name="linkedin" href="https://www.linkedin.com/cws/share?url=https%3A%2F%2Fdocs.microsoft.com%2Fzh-cn%2Fdotnet%2Fapi%2Fsystem.web.routing.route%3Fview%3Dnetframework-4.8%26viewFallbackFrom%3Dnet-5.0%26WT.mc_id%3Dlinkedin">
					<span class="icon">
						<span class="docon docon-brand-linkedin has-text-primary" aria-hidden="true"></span>
					</span>
					<span>LinkedIn</span>
				</a>
			</li>
			<li>
				<a class="button is-text is-fullwidth has-flex-justify-content-start has-inner-focus is-small share-facebook" data-bi-name="facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdocs.microsoft.com%2Fzh-cn%2Fdotnet%2Fapi%2Fsystem.web.routing.route%3Fview%3Dnetframework-4.8%26viewFallbackFrom%3Dnet-5.0%26WT.mc_id%3Dfacebook">
					<span class="icon">
						<span class="docon docon-brand-facebook has-text-primary" aria-hidden="true"></span>
					</span>
					<span>Facebook</span>
				</a>
			</li>
			<li>
				<a class="button is-text is-fullwidth has-flex-justify-content-start has-inner-focus is-small share-email" data-bi-name="email" href="mailto:?subject=%5B%E5%85%B1%E4%BA%AB%E6%96%87%E7%AB%A0%5D%20Route%20%E7%B1%BB%20(System.Web.Routing)%20%7C%20Microsoft%20Docs&amp;body=Route%20%E7%B1%BB%20(System.Web.Routing)%20%7C%20Microsoft%20Docs%0A%0Ahttps%3A%2F%2Fdocs.microsoft.com%2Fzh-cn%2Fdotnet%2Fapi%2Fsystem.web.routing.route%3Fview%3Dnetframework-4.8%26viewFallbackFrom%3Dnet-5.0%26WT.mc_id%3Demail">
					<span class="icon">
						<span class="docon docon-mail-message-fill has-text-primary" aria-hidden="true"></span>
					</span>
					<span>电子邮件</span>
				</a>
			</li>
			<li>
				<span class="button is-text is-fullwidth has-flex-justify-content-start has-inner-focus is-small share-wechat has-padding-top-extra-small has-padding-left-medium has-padding-right-medium">
					<span class="icon">
						<span class="docon docon-wechat has-text-primary" data-bi-name="wechat" aria-hidden="true"></span>
					</span>
					<span>微信</span>
				</span>
			</li>
			<li>
				<canvas class="qr-code" height="96" width="96"></canvas>
			</li>
		</ul>
	</div>
</div>						</li>
					</ul>
					<button type="button" class="has-border contents-button button is-small is-text is-hidden-tablet has-inner-focus" aria-label="目录" data-bi-name="contents-expand">
						<span class="icon">
							<span class="docon docon-editor-list-bullet" aria-hidden="true"></span>
						</span>
						<span class="contents-expand-title">目录</span>
					</button>
					<div class="is-invisible"></div>
					<div class="is-hidden-tablet level-item is-flexible level-right">

<div class="language dropdown has-caret is-inline-block has-border-mobile">
	<button class="dropdown-trigger button is-text is-small" aria-controls="language-menu" aria-expanded="false" title="语言" data-bi-name="language">
		<span class="icon is-hidden-desktop has-margin-none">
			<span class="docon docon-code-lang" aria-hidden="true"></span>
		</span>
		<span class="lang-title is-visually-hidden-touch has-flex-align-self-start is-hidden-portrait" dir="ltr">C#</span>
		<span class="icon is-hidden-mobile is-hidden-tablet-only" aria-hidden="true">
			<span class="docon docon-chevron-down-light expanded-indicator"></span>
		</span>
	</button>
	<div class="dropdown-menu has-padding-small language-selector" name="language-selector" role="menu">
		<ul data-bi-name="language-links" dir="ltr">
			<li>
				<a class="button is-text is-small is-fullwidth has-flex-justify-content-start" data-bi-name="lang-csharp" tabindex="0" aria-selected="false">C#</a>
			</li>
			<li>
				<a class="button is-text is-small is-fullwidth has-flex-justify-content-start" data-bi-name="lang-vb" tabindex="0" aria-selected="false">VB</a>
			</li>
			<li>
				<a class="button is-text is-small is-fullwidth has-flex-justify-content-start" data-bi-name="lang-cpp" tabindex="0" aria-selected="false">C++</a>
			</li>
			<li>
				<a class="button is-text is-small is-fullwidth has-flex-justify-content-start" data-bi-name="lang-fsharp" tabindex="0" aria-selected="false">F#</a>
			</li>
		</ul>
	</div>
</div>						<button type="button" class="page-actions-button button is-small is-text is-hidden-tablet has-inner-focus has-border is-full-height  has-margin-left-small" aria-label="页面操作" data-bi-name="pageactions">
							<span class="icon">
								<span class="docon docon-more-vertical" aria-hidden="true"></span>
							</span>
						</button>
					</div>
				</div>
			</div>



		<div id="disclaimer-holder" class="has-overflow-hidden has-default-focus"><!----> <section data-dismissable="disappearing" class="is-info alert is-banner">
			<div class="uhf-container">
				<button data-dismiss="" type="button" class="delete is-absolute has-top-zero has-right-zero has-margin-extra-small is-large">
					<span class="visually-hidden"><!---->消除警报<!----></span>
				</button>
				<div class="columns">
					<div class="column is-12">
						<div class="level">
							<div class="level-left has-flex-shrink">
								<div class="level-item has-flex-shrink">
									<p class="has-text-white-static disclaimer-title has-margin-top-extra-small has-margin-right-medium has-line-height-reset">
										<span class="icon">
											<span class="docon docon-status-error-outline" aria-hidden="true"></span>
										</span>
										<span><!---->请求的页面对于 .NET 5 不可用。 已重定向到此页面针对的最新版产品的相应页面。<!----></span>
									</p>
								</div>
							</div>
							
						</div>
					</div>
				</div>
			</div>
		</section><!----></div>
	</div>

	<div class="mainContainer  uhf-container has-top-padding  has-default-focus" data-bi-name="body">

		<div class="columns has-large-gaps is-gapless-mobile ">

			<div id="left-container" class="left-container is-hidden-mobile column is-one-third-tablet is-one-quarter-desktop">
				<nav id="affixed-left-container" class="is-fixed is-flex is-flex-column" role="navigation" aria-label="主要" style="width: 320.25px; top: 225.5px; bottom: 24px;" data-bi-name="left toc"><div class="moniker-picker2" data-bi-name="moniker-picker"><!---->
		<span class="label has-margin-bottom-extra-small"><!---->版本<!----></span>
		<div class="dropdown has-margin-bottom-small" role="navigation" aria-label="版本">
			<button class="dropdown-trigger has-flex-justify-content-start is-full-width button is-small has-border has-inner-focus" aria-expanded="false" aria-controls="ax-117">
				<span class="has-text-overflow-ellipsis"><!---->.NET Framework 4.8<!----></span>
				<span class="dropdown-button-chevron" aria-hidden="true">
					<span class="icon docon docon-chevron-down-light expanded-indicator"></span>
				</span>
			</button>
			<ul class="dropdown-menu is-full-width" id="ax-117" aria-label="产品">
						
						
						<!---->
		<li>
					<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=net-5.0"><!---->.NET 5<!----></a>
			  </li>
	<!---->
		<li class="dropdown">
					<button aria-expanded="false" class="dropdown-trigger button is-small has-border-none has-inner-focus has-flex has-flex-justify-content-start is-full-width has-text-wrap is-text-left" aria-controls="ax-119">
						<span><!---->.NET Core<!----></span>
						<span class="dropdown-button-chevron" aria-hidden="true">
							<span class="docon docon-chevron-right-light"></span>
						</span>
					</button>
					<ul class="dropdown-menu is-full-width is-vertically-scrollable" id="ax-119" aria-label=".NET Core">
						<!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netcore-3.1"><!---->3.1<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netcore-3.0"><!---->3.0<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netcore-2.2"><!---->2.2<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netcore-2.1"><!---->2.1<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netcore-2.0"><!---->2.0<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netcore-1.1"><!---->1.1<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netcore-1.0"><!---->1.0<!----></a>
		</li>
	<!----><!---->
						
					</ul>
			  </li>
	<!---->
		<li class="dropdown">
					<button aria-expanded="false" class="dropdown-trigger button is-small has-border-none has-inner-focus has-flex has-flex-justify-content-start is-full-width has-text-wrap is-text-left" aria-controls="ax-120">
						<span><!---->.NET Framework<!----></span>
						<span class="dropdown-button-chevron" aria-hidden="true">
							<span class="docon docon-chevron-right-light"></span>
						</span>
					</button>
					<ul class="dropdown-menu is-full-width is-vertically-scrollable" id="ax-120" aria-label=".NET Framework">
						<!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8"><!---->4.8<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.7.2"><!---->4.7.2<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.7.1"><!---->4.7.1<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.7"><!---->4.7<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.6.2"><!---->4.6.2<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.6.1"><!---->4.6.1<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.6"><!---->4.6<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.5.2"><!---->4.5.2<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.5.1"><!---->4.5.1<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.5"><!---->4.5<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.0"><!---->4.0<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-3.5"><!---->3.5<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-3.0"><!---->3.0<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-2.0"><!---->2.0<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-1.1"><!---->1.1<!----></a>
		</li>
	<!----><!---->
						
					</ul>
			  </li>
	<!---->
		<li class="dropdown">
					<button aria-expanded="false" class="dropdown-trigger button is-small has-border-none has-inner-focus has-flex has-flex-justify-content-start is-full-width has-text-wrap is-text-left" aria-controls="ax-121">
						<span><!---->.NET Platform Extensions<!----></span>
						<span class="dropdown-button-chevron" aria-hidden="true">
							<span class="docon docon-chevron-right-light"></span>
						</span>
					</button>
					<ul class="dropdown-menu is-full-width is-vertically-scrollable" id="ax-121" aria-label=".NET Platform Extensions">
						<!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=dotnet-plat-ext-5.0"><!---->5.0<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=dotnet-plat-ext-3.1"><!---->3.1<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=dotnet-plat-ext-3.0"><!---->3.0<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=dotnet-plat-ext-2.2"><!---->2.2<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=dotnet-plat-ext-2.1"><!---->2.1<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=dotnet-plat-ext-2.0"><!---->2.0<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=dotnet-plat-ext-1.1"><!---->1.1<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=dotnet-plat-ext-1.0"><!---->1.0<!----></a>
		</li>
	<!----><!---->
						
					</ul>
			  </li>
	<!---->
		<li class="dropdown">
					<button aria-expanded="false" class="dropdown-trigger button is-small has-border-none has-inner-focus has-flex has-flex-justify-content-start is-full-width has-text-wrap is-text-left" aria-controls="ax-122">
						<span><!---->.NET Standard<!----></span>
						<span class="dropdown-button-chevron" aria-hidden="true">
							<span class="docon docon-chevron-right-light"></span>
						</span>
					</button>
					<ul class="dropdown-menu is-full-width is-vertically-scrollable" id="ax-122" aria-label=".NET Standard">
						<!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netstandard-2.1"><!---->2.1<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netstandard-2.0"><!---->2.0<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netstandard-1.6"><!---->1.6<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netstandard-1.5"><!---->1.5<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netstandard-1.4"><!---->1.4<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netstandard-1.3"><!---->1.3<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netstandard-1.2"><!---->1.2<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netstandard-1.1"><!---->1.1<!----></a>
		</li>
	<!----><!----><!---->
		<li>
			<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netstandard-1.0"><!---->1.0<!----></a>
		</li>
	<!----><!---->
						
					</ul>
			  </li>
	<!---->
		<li>
					<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=dotnet-uwp-10.0"><!---->UWP 10.0<!----></a>
			  </li>
	<!---->
		<li>
					<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=xamarinandroid-7.1"><!---->Xamarin.Android 7.1<!----></a>
			  </li>
	<!---->
		<li>
					<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=xamarinios-10.8"><!---->Xamarin.iOS 10.8<!----></a>
			  </li>
	<!---->
		<li>
					<a class="preserve-view button is-small has-border-none has-inner-focus has-flex-justify-content-start is-full-width has-text-wrap is-text-left" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=xamarinmac-3.0"><!---->Xamarin.Mac 3.0<!----></a>
			  </li>
	<!---->
				  </ul>
		</div>
	<!----></div><form action="javascript:" role="search" aria-label="搜索" class="has-margin-bottom-small"><label class="visually-hidden" for="ax-114">搜索</label><div class="autocomplete is-block" data-bi-name="autocomplete"><!----> <div class="control has-icons-left">
				<input role="combobox" maxlength="100" aria-autocomplete="list" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" id="ax-114" class="autocomplete-input input control has-icons-left is-full-width is-small" type="text" aria-expanded="false" aria-owns="ax-115-listbox" aria-activedescendant="" placeholder="搜索">

				<span aria-hidden="true" class="icon is-small is-left">
					<span class="has-text-primary docon docon-search"></span>
				</span>

				<span aria-hidden="true" class="autocomplete-loader loader has-text-primary " hidden=""></span>
			</div>

			<ul class="autocomplete-suggestions is-vertically-scrollable" role="listbox" id="ax-115-listbox" aria-label="ax-114-suggestions" hidden="">
				
			</ul><!----></div></form><ul class="tree is-vertically-scrollable has-flex-grow has-flex-shrink" role="tree" aria-label="目录" data-bi-name="tree" data-is-collapsible="true"><li data-moniker="netframework-3.5 netframework-4.0 netframework-4.5 netframework-4.5.1 netframework-4.5.2 netframework-4.6 netframework-4.6.1 netframework-4.6.2 netframework-4.7 netframework-4.7.1 netframework-4.7.2 netframework-4.8" role="none"><a aria-setsize="17" aria-level="1" aria-posinset="1" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing?view=netframework-4.8">System.<wbr>Web.<wbr>Routing</a></li><li class="tree-item" aria-setsize="17" aria-level="1" aria-posinset="2" role="treeitem" tabindex="-1" id="title-2-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>HttpMethodConstraint</span></li><li class="tree-item" aria-setsize="17" aria-level="1" aria-posinset="3" role="treeitem" tabindex="-1" id="title-3-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>IRouteConstraint</span></li><li class="tree-item" aria-setsize="17" aria-level="1" aria-posinset="4" role="treeitem" tabindex="-1" id="title-4-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>IRouteHandler</span></li><li data-moniker="netframework-4.0 netframework-4.5 netframework-4.5.1 netframework-4.5.2 netframework-4.6 netframework-4.6.1 netframework-4.6.2 netframework-4.7 netframework-4.7.1 netframework-4.7.2 netframework-4.8" class="tree-item" aria-setsize="17" aria-level="1" aria-posinset="5" role="treeitem" tabindex="-1" id="title-5-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>PageRouteHandler</span></li><li class="tree-item" aria-setsize="17" aria-level="1" aria-posinset="6" role="treeitem" tabindex="-1" id="title-6-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>RequestContext</span></li><li class="tree-item is-expanded" aria-setsize="17" aria-level="1" aria-posinset="7" role="treeitem" tabindex="-1" id="title-7-1" aria-expanded="true"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>Route</span><ul class="tree-group" role="group"><li role="none"><a aria-setsize="4" aria-level="2" aria-posinset="1" role="treeitem" tabindex="0" class="tree-item is-leaf has-external-link-indicator is-selected" data-bi-name="tree-leaf" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" aria-current="page">Route</a></li><li role="none"><a aria-setsize="4" aria-level="2" aria-posinset="2" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.-ctor?view=netframework-4.8">构造函数</a></li><li class="tree-item" aria-setsize="4" aria-level="2" aria-posinset="3" role="treeitem" tabindex="-1" id="title-7-1_3-2" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>属性</span></li><li class="tree-item" aria-setsize="4" aria-level="2" aria-posinset="4" role="treeitem" tabindex="-1" id="title-7-1_4-2" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>方法</span></li></ul></li><li class="tree-item" aria-setsize="17" aria-level="1" aria-posinset="8" role="treeitem" tabindex="-1" id="title-8-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>RouteBase</span></li><li class="tree-item" aria-setsize="17" aria-level="1" aria-posinset="9" role="treeitem" tabindex="-1" id="title-9-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>RouteCollection</span></li><li class="tree-item" aria-setsize="17" aria-level="1" aria-posinset="10" role="treeitem" tabindex="-1" id="title-10-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>RouteData</span></li><li role="none"><a aria-setsize="17" aria-level="1" aria-posinset="11" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.routedirection?view=netframework-4.8">RouteDirection</a></li><li class="tree-item" aria-setsize="17" aria-level="1" aria-posinset="12" role="treeitem" tabindex="-1" id="title-12-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>RouteTable</span></li><li class="tree-item" aria-setsize="17" aria-level="1" aria-posinset="13" role="treeitem" tabindex="-1" id="title-13-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>RouteValueDictionary</span></li><li class="tree-item" aria-setsize="17" aria-level="1" aria-posinset="14" role="treeitem" tabindex="-1" id="title-14-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>StopRoutingHandler</span></li><li class="tree-item" aria-setsize="17" aria-level="1" aria-posinset="15" role="treeitem" tabindex="-1" id="title-15-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>UrlRoutingHandler</span></li><li class="tree-item" aria-setsize="17" aria-level="1" aria-posinset="16" role="treeitem" tabindex="-1" id="title-16-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>UrlRoutingModule</span></li><li class="tree-item" aria-setsize="17" aria-level="1" aria-posinset="17" role="treeitem" tabindex="-1" id="title-17-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>VirtualPathData</span></li></ul></nav>
			</div>

			<section class="primary-holder column is-two-thirds-tablet is-three-quarters-desktop">
				<div class="columns is-gapless-mobile has-large-gaps ">


				<div id="main-column" class="column  is-full is-four-fifths-desktop ">

					<main id="main" role="main" class="content " data-bi-name="content" lang="zh-cn" dir="ltr">



						


						<!-- <content> -->
							<h1>Route 类</h1>

<h2 class="hiddenAnchor" id="definition">定义</h2>

<div class="metadata">
		<dl class="attributeList">
			<dt>命名空间:</dt>
			<dd>
				<span class="break-text">   <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing?view=netframework-4.8" data-linktype="relative-path">System.<wbr>Web.<wbr>Routing</a> </span>
			</dd>
		</dl>


		<dl class="attributeList" data-moniker=" netframework-3.5 ">
			<dt>程序集:</dt><dd>System.Web.Routing.dll</dd>
		</dl>
		<dl class="attributeList" data-moniker=" netframework-4.0 netframework-4.5 netframework-4.5.1 netframework-4.5.2 netframework-4.6 netframework-4.6.1 netframework-4.6.2 netframework-4.7 netframework-4.7.1 netframework-4.7.2 netframework-4.8 ">
			<dt>程序集:</dt><dd>System.Web.dll</dd>
		</dl>


</div>
	<div class="summaryHolder">
		<div class="summary clearFix">
			<p><span data-ttu-id="774fe-101">提供用于定义路由和获取有关路由的信息的属性和方法。</span><span class="sxs-lookup"><span data-stu-id="774fe-101">Provides properties and methods for defining a route and for obtaining information about the route.</span></span></p>

		</div>
	</div>
<nav id="center-doc-outline" class="doc-outline is-hidden-desktop" data-bi-name="intopic toc" role="navigation" aria-label="On page navigation">
  <h3>本文内容</h3>
<ol><li><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#definition">定义</a></li><li><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#examples">示例</a></li><li><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#remarks">注解</a></li><li><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#constructors">构造函数</a></li><li><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#properties">属性</a></li><li><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#methods">方法</a></li><li><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#---">适用于</a></li></ol></nav>
	<pre class="wrap has-inner-focus" data-moniker=" netframework-3.5 netframework-4.0 netframework-4.5 netframework-4.5.1 netframework-4.5.2 netframework-4.6 netframework-4.6.1 netframework-4.6.2 netframework-4.7 netframework-4.7.1 netframework-4.7.2 netframework-4.8 " tabindex="0" hidden=""><code class="cpp lang-cpp" dir="ltr" data-author-content="public ref class Route : System::Web::Routing::RouteBase">public ref class Route : System::Web::Routing::RouteBase</code></pre>
	<div class="codeHeader" id="code-try-0" data-bi-name="code-header" data-moniker=" netframework-3.5 netframework-4.0 netframework-4.5 netframework-4.5.1 netframework-4.5.2 netframework-4.6 netframework-4.6.1 netframework-4.6.2 netframework-4.7 netframework-4.7.1 netframework-4.7.2 netframework-4.8 "><span class="language">C#</span><button type="button" class="action is-relative" data-bi-name="copy" aria-label="复制代码">
				<span class="icon">
					<span class="docon docon-edit-copy" role="presentation"></span>
				</span>
				<span>复制</span>
				<div class="successful-copy-alert is-absolute has-right-zero has-top-zero has-left-zero has-bottom-zero is-flex has-flex-align-items-center has-flex-justify-content-center has-text-success-invert has-background-success is-transparent" aria-hidden="true">
					<span class="icon is-size-large">
						<span class="docon docon-check-mark" role="presentation"></span>
					</span>
				</div>
			</button></div><pre class="wrap has-inner-focus" data-moniker=" netframework-3.5 netframework-4.0 netframework-4.5 netframework-4.5.1 netframework-4.5.2 netframework-4.6 netframework-4.6.1 netframework-4.6.2 netframework-4.7 netframework-4.7.1 netframework-4.7.2 netframework-4.8 " tabindex="0"><code class="csharp lang-csharp" dir="ltr" data-author-content="public class Route : System.Web.Routing.RouteBase"><span><span class="hljs-keyword">public</span> <span class="hljs-keyword">class</span> <span class="hljs-title">Route</span> : <span class="hljs-title">System</span>.<span class="hljs-title">Web</span>.<span class="hljs-title">Routing</span>.<span class="hljs-title">RouteBase</span></span></code></pre>
	<pre class="wrap has-inner-focus" data-moniker=" netframework-3.5 netframework-4.0 netframework-4.5 netframework-4.5.1 netframework-4.5.2 netframework-4.6 netframework-4.6.1 netframework-4.6.2 netframework-4.7 netframework-4.7.1 netframework-4.7.2 netframework-4.8 " tabindex="0" hidden=""><code class="fsharp lang-fsharp" dir="ltr" data-author-content="type Route = class
    inherit RouteBase">type Route = class
    inherit RouteBase</code></pre>
	<pre class="wrap has-inner-focus" data-moniker=" netframework-3.5 netframework-4.0 netframework-4.5 netframework-4.5.1 netframework-4.5.2 netframework-4.6 netframework-4.6.1 netframework-4.6.2 netframework-4.7 netframework-4.7.1 netframework-4.7.2 netframework-4.8 " tabindex="0" hidden=""><code class="vb lang-vb" dir="ltr" data-author-content="Public Class Route
Inherits RouteBase">Public Class Route
Inherits RouteBase</code></pre>

		<dl class="attributeList stack">
			<dt>继承</dt>
			<dd>
				<div class="pdlHolder">
					 <div class="pdl"><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.object?view=netframework-4.8" data-linktype="relative-path">Object</a></div>  <div class="pdl"><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.routebase?view=netframework-4.8" data-linktype="relative-path">RouteBase</a></div> 
					 <span>Route</span> 
				</div>
			</dd>
		</dl>
	<dl id="derived" class="attributeList stack">
		<dt>派生</dt>
		<dd>
				<div>
					<span class="break-text">
							  <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.servicemodel.activation.serviceroute?view=netframework-4.8" data-linktype="relative-path">System.<wbr>Service<wbr>Model.<wbr>Activation.<wbr>Service<wbr>Route</a>
					</span>
				</div>
				<div>
					<span class="break-text">
							  <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.dynamicdata.dynamicdataroute?view=netframework-4.8" data-linktype="relative-path">System.<wbr>Web.<wbr>Dynamic<wbr>Data.<wbr>Dynamic<wbr>Data<wbr>Route</a>
					</span>
				</div>
		</dd>
	</dl>
	<h2 id="examples" class="heading-anchor"><a class="anchor-link docon docon-link" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#examples" aria-labelledby="examples"></a>示例</h2>
	<p><span data-ttu-id="774fe-118">下面的示例演示如何创建 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" data-linktype="relative-path">Route</a> 对象并将其添加到 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.routetable.routes?view=netframework-4.8" data-linktype="relative-path">Routes</a> 属性。</span><span class="sxs-lookup"><span data-stu-id="774fe-118">The following example shows how to create a <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" data-linktype="relative-path">Route</a> object and add it to the <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.routetable.routes?view=netframework-4.8" data-linktype="relative-path">Routes</a> property.</span></span></p>
<div class="codeHeader" id="code-try-1" data-bi-name="code-header"><span class="language">C#</span><button type="button" class="action is-relative" data-bi-name="copy" aria-label="复制代码">
				<span class="icon">
					<span class="docon docon-edit-copy" role="presentation"></span>
				</span>
				<span>复制</span>
				<div class="successful-copy-alert is-absolute has-right-zero has-top-zero has-left-zero has-bottom-zero is-flex has-flex-align-items-center has-flex-justify-content-center has-text-success-invert has-background-success is-transparent" aria-hidden="true">
					<span class="icon is-size-large">
						<span class="docon docon-check-mark" role="presentation"></span>
					</span>
				</div>
			</button></div><pre tabindex="0" class="has-inner-focus"><code class="lang-csharp" name="System.Web.Routing.RouteTable.Routes#1" data-author-content="void Application_Start(object sender, EventArgs e) 
{
    RegisterRoutes(RouteTable.Routes);
}

public static void RegisterRoutes(RouteCollection routes)
{
    routes.Add(new Route
    (
         &quot;Category/{action}/{categoryName}&quot;
         , new CategoryRouteHandler()
    ));
}
"><span><span class="hljs-function"><span class="hljs-keyword">void</span> <span class="hljs-title">Application_Start</span>(<span class="hljs-params"><span class="hljs-keyword">object</span> sender, EventArgs e</span>)</span> 
{
    RegisterRoutes(RouteTable.Routes);
}

<span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">RegisterRoutes</span>(<span class="hljs-params">RouteCollection routes</span>)</span>
{
    routes.Add(<span class="hljs-keyword">new</span> Route
    (
         <span class="hljs-string">"Category/{action}/{categoryName}"</span>
         , <span class="hljs-keyword">new</span> CategoryRouteHandler()
    ));
}
</span></code></pre><pre tabindex="0" class="has-inner-focus" hidden=""><code class="lang-vb" name="System.Web.Routing.RouteTable.Routes#1" data-author-content="Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
    RegisterRoutes(RouteTable.Routes)
End Sub

Shared Sub RegisterRoutes(ByVal routes As RouteCollection)
    Dim urlPattern As String
    Dim categoryRoute As Route
    
    urlPattern = &quot;Category/{action}/{categoryName}&quot;
    
    categoryRoute = New Route(urlPattern, New CategoryRouteHandler)
    
    routes.Add(categoryRoute)
End Sub
">Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
    RegisterRoutes(RouteTable.Routes)
End Sub

Shared Sub RegisterRoutes(ByVal routes As RouteCollection)
    Dim urlPattern As String
    Dim categoryRoute As Route
    
    urlPattern = "Category/{action}/{categoryName}"
    
    categoryRoute = New Route(urlPattern, New CategoryRouteHandler)
    
    routes.Add(categoryRoute)
End Sub
</code></pre>

	<h2 id="remarks" class="heading-anchor"><a class="anchor-link docon docon-link" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#remarks" aria-labelledby="remarks"></a>注解</h2>
	<p><span data-ttu-id="774fe-102"><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" data-linktype="relative-path">Route</a>类使你可以指定如何在 ASP.NET 应用程序中处理路由。</span><span class="sxs-lookup"><span data-stu-id="774fe-102">The <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" data-linktype="relative-path">Route</a> class enables you to specify how routing is processed in an ASP.NET application.</span></span> <span data-ttu-id="774fe-103">你 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" data-linktype="relative-path">Route</a> 为要映射到的每个 URL 模式创建一个对象，该对象可以处理与该模式对应的请求。</span><span class="sxs-lookup"><span data-stu-id="774fe-103">You create a <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" data-linktype="relative-path">Route</a> object for each URL pattern that you want to map to a class that can handle requests that correspond to that pattern.</span></span> <span data-ttu-id="774fe-104">然后，将路由添加到 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.routetable.routes?view=netframework-4.8" data-linktype="relative-path">Routes</a> 集合。</span><span class="sxs-lookup"><span data-stu-id="774fe-104">You then add the route to the <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.routetable.routes?view=netframework-4.8" data-linktype="relative-path">Routes</a> collection.</span></span> <span data-ttu-id="774fe-105">当应用程序收到请求时，ASP.NET 路由会循环访问集合中的路由， <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.routetable.routes?view=netframework-4.8" data-linktype="relative-path">Routes</a> 以查找第一个与 URL 模式匹配的路由。</span><span class="sxs-lookup"><span data-stu-id="774fe-105">When the application receives a request, ASP.NET routing iterates through the routes in the <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.routetable.routes?view=netframework-4.8" data-linktype="relative-path">Routes</a> collection to find the first route that matches the pattern of the URL.</span></span></p>
<p><span data-ttu-id="774fe-106">将 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.url?view=netframework-4.8" data-linktype="relative-path">Url</a> 属性设置为 URL 模式。</span><span class="sxs-lookup"><span data-stu-id="774fe-106">Set the <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.url?view=netframework-4.8" data-linktype="relative-path">Url</a> property to a URL pattern.</span></span> <span data-ttu-id="774fe-107">URL 模式由传入 HTTP 请求中的应用程序名称后面的段组成。</span><span class="sxs-lookup"><span data-stu-id="774fe-107">The URL pattern consists of segments that come after the application name in an HTTP request.</span></span> <span data-ttu-id="774fe-108">例如，在 URL 中 <code>http://www.contoso.com/products/show/beverages</code> ，模式适用于 <code>products/show/beverages</code> 。</span><span class="sxs-lookup"><span data-stu-id="774fe-108">For example, in the URL <code>http://www.contoso.com/products/show/beverages</code>, the pattern applies to <code>products/show/beverages</code>.</span></span> <span data-ttu-id="774fe-109">具有三个段（如）的模式 <code>{controller}/{action}/{id}</code> 与 URL 匹配 <code>http://www.contoso.com/products/show/beverages</code> 。</span><span class="sxs-lookup"><span data-stu-id="774fe-109">A pattern with three segments, such as <code>{controller}/{action}/{id}</code>, matches the URL <code>http://www.contoso.com/products/show/beverages</code>.</span></span> <span data-ttu-id="774fe-110">每个段均由 <code>/</code> 字符分隔。</span><span class="sxs-lookup"><span data-stu-id="774fe-110">Each segment is delimited by the <code>/</code> character.</span></span> <span data-ttu-id="774fe-111">当段括在大括号中 (<code>{</code> 和 <code>}</code>) 时，段会被称为 URL 参数。</span><span class="sxs-lookup"><span data-stu-id="774fe-111">When a segment is enclosed in braces (<code>{</code> and <code>}</code>), the segment is referred to a URL parameter.</span></span> <span data-ttu-id="774fe-112">ASP.NET 路由从请求中检索值并将其分配给 URL 参数。</span><span class="sxs-lookup"><span data-stu-id="774fe-112">ASP.NET routing retrieves the value from the request and assigns it to the URL parameter.</span></span> <span data-ttu-id="774fe-113">在上面的示例中，将为 URL 参数 <code>action</code> 分配值 <code>show</code> 。</span><span class="sxs-lookup"><span data-stu-id="774fe-113">In the previous example, the URL parameter <code>action</code> is assigned the value <code>show</code>.</span></span> <span data-ttu-id="774fe-114">如果段未括在大括号中，则该值将被视为文本值。</span><span class="sxs-lookup"><span data-stu-id="774fe-114">If the segment is not enclosed in braces, the value is treated as a literal value.</span></span></p>
<p><span data-ttu-id="774fe-115">将 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.defaults?view=netframework-4.8" data-linktype="relative-path">Defaults</a> 属性设置为一个 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.routevaluedictionary?view=netframework-4.8" data-linktype="relative-path">RouteValueDictionary</a> 对象，该对象包含在 url 缺少参数时使用的值，或者设置未在 url 中参数化的其他值。</span><span class="sxs-lookup"><span data-stu-id="774fe-115">Set the <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.defaults?view=netframework-4.8" data-linktype="relative-path">Defaults</a> property to a <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.routevaluedictionary?view=netframework-4.8" data-linktype="relative-path">RouteValueDictionary</a> object that includes values that are used if a parameter is missing from the URL or to set additional values that are not parameterized in the URL.</span></span> <span data-ttu-id="774fe-116">将 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.constraints?view=netframework-4.8" data-linktype="relative-path">Constraints</a> 属性设置为 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.routevaluedictionary?view=netframework-4.8" data-linktype="relative-path">RouteValueDictionary</a> 包含正则表达式或对象的值的对象 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.irouteconstraint?view=netframework-4.8" data-linktype="relative-path">IRouteConstraint</a> 。</span><span class="sxs-lookup"><span data-stu-id="774fe-116">Set the <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.constraints?view=netframework-4.8" data-linktype="relative-path">Constraints</a> property to a <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.routevaluedictionary?view=netframework-4.8" data-linktype="relative-path">RouteValueDictionary</a> object that contains values that are either regular expressions or <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.irouteconstraint?view=netframework-4.8" data-linktype="relative-path">IRouteConstraint</a> objects.</span></span> <span data-ttu-id="774fe-117">这些值用于确定参数值是否有效。</span><span class="sxs-lookup"><span data-stu-id="774fe-117">These values are used to determine whether a parameter value is valid.</span></span></p>



	<h2 id="constructors" class="heading-anchor"><a class="anchor-link docon docon-link" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#constructors" aria-labelledby="constructors"></a>
		构造函数
	</h2>
	<div class="table-scroll-wrapper"><table class="nameValue table is-left-aligned is-stacked-mobile"><caption class="visually-hidden">构造函数</caption>
        	<tbody><tr>
	  <td class="is-one-third-width-tablet">
	<span class="break-text">
		<a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.-ctor?view=netframework-4.8#System_Web_Routing_Route__ctor_System_String_System_Web_Routing_IRouteHandler_" data-linktype="relative-path">Route(String, IRoute<wbr>Handler)</a>
	</span>
</td>
	<td class="summary"> 
		<p><span data-ttu-id="774fe-123">使用指定的 URL 模式和处理程序类初始化 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" data-linktype="relative-path">Route</a> 类的新实例。</span><span class="sxs-lookup"><span data-stu-id="774fe-123">Initializes a new instance of the <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" data-linktype="relative-path">Route</a> class, by using the specified URL pattern and handler class.</span></span></p>

	</td>

        	</tr>
        	<tr>
	  <td class="is-one-third-width-tablet">
	<span class="break-text">
		<a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.-ctor?view=netframework-4.8#System_Web_Routing_Route__ctor_System_String_System_Web_Routing_RouteValueDictionary_System_Web_Routing_IRouteHandler_" data-linktype="relative-path">Route(String, Route<wbr>Value<wbr>Dictionary, IRoute<wbr>Handler)</a>
	</span>
</td>
	<td class="summary"> 
		<p><span data-ttu-id="774fe-129">通过使用指定的 URL 模式、默认参数值和处理程序类，初始化 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" data-linktype="relative-path">Route</a> 类的新实例。</span><span class="sxs-lookup"><span data-stu-id="774fe-129">Initializes a new instance of the <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" data-linktype="relative-path">Route</a> class, by using the specified URL pattern, default parameter values, and handler class.</span></span></p>

	</td>

        	</tr>
        	<tr>
	  <td class="is-one-third-width-tablet">
	<span class="break-text">
		<a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.-ctor?view=netframework-4.8#System_Web_Routing_Route__ctor_System_String_System_Web_Routing_RouteValueDictionary_System_Web_Routing_RouteValueDictionary_System_Web_Routing_IRouteHandler_" data-linktype="relative-path">Route(String, Route<wbr>Value<wbr>Dictionary, Route<wbr>Value<wbr>Dictionary, IRoute<wbr>Handler)</a>
	</span>
</td>
	<td class="summary"> 
		<p><span data-ttu-id="774fe-135">使用指定的 URL 模式、默认参数值、约束和处理程序类初始化 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" data-linktype="relative-path">Route</a> 类的新实例。</span><span class="sxs-lookup"><span data-stu-id="774fe-135">Initializes a new instance of the <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" data-linktype="relative-path">Route</a> class, by using the specified URL pattern, default parameter values, constraints, and handler class.</span></span></p>

	</td>

        	</tr>
        	<tr>
	  <td class="is-one-third-width-tablet">
	<span class="break-text">
		<a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.-ctor?view=netframework-4.8#System_Web_Routing_Route__ctor_System_String_System_Web_Routing_RouteValueDictionary_System_Web_Routing_RouteValueDictionary_System_Web_Routing_RouteValueDictionary_System_Web_Routing_IRouteHandler_" data-linktype="relative-path">Route(String, Route<wbr>Value<wbr>Dictionary, Route<wbr>Value<wbr>Dictionary, Route<wbr>Value<wbr>Dictionary, IRoute<wbr>Handler)</a>
	</span>
</td>
	<td class="summary"> 
		<p><span data-ttu-id="774fe-143">使用指定的 URL 模式、默认参数值、约束、自定义值和处理程序类初始化 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" data-linktype="relative-path">Route</a> 类的新实例。</span><span class="sxs-lookup"><span data-stu-id="774fe-143">Initializes a new instance of the <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8" data-linktype="relative-path">Route</a> class, by using the specified URL pattern, default parameter values, constraints, custom values, and handler class.</span></span></p>

	</td>

        	</tr>
	</tbody></table></div>


	<h2 id="properties" class="heading-anchor"><a class="anchor-link docon docon-link" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#properties" aria-labelledby="properties"></a>
		属性
	</h2>
	<div class="table-scroll-wrapper"><table class="nameValue table is-left-aligned is-stacked-mobile"><caption class="visually-hidden">属性</caption>
        	<tbody><tr>	
	  <td class="is-one-third-width-tablet">
	<span class="break-text">
		<a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.constraints?view=netframework-4.8#System_Web_Routing_Route_Constraints" data-linktype="relative-path">Constraints</a>
	</span>
</td>
	<td class="summary"> 
		<p><span data-ttu-id="774fe-145">获取或设置表达式字典，用于指定 URL 参数的有效值。</span><span class="sxs-lookup"><span data-stu-id="774fe-145">Gets or sets a dictionary of expressions that specify valid values for a URL parameter.</span></span></p>

	</td>

        	</tr>
        	<tr>	
	  <td class="is-one-third-width-tablet">
	<span class="break-text">
		<a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.datatokens?view=netframework-4.8#System_Web_Routing_Route_DataTokens" data-linktype="relative-path">Data<wbr>Tokens</a>
	</span>
</td>
	<td class="summary"> 
		<p><span data-ttu-id="774fe-158">获取或设置传递到路由处理程序但未用于确定该路由是否与 URL 模式匹配的自定义值。</span><span class="sxs-lookup"><span data-stu-id="774fe-158">Gets or sets custom values that are passed to the route handler, but which are not used to determine whether the route matches a URL pattern.</span></span></p>

	</td>

        	</tr>
        	<tr>	
	  <td class="is-one-third-width-tablet">
	<span class="break-text">
		<a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.defaults?view=netframework-4.8#System_Web_Routing_Route_Defaults" data-linktype="relative-path">Defaults</a>
	</span>
</td>
	<td class="summary"> 
		<p><span data-ttu-id="774fe-164">获取或设置要在 URL 不包含所有参数时使用的值。</span><span class="sxs-lookup"><span data-stu-id="774fe-164">Gets or sets the values to use if the URL does not contain all the parameters.</span></span></p>

	</td>

        	</tr>
        	<tr>	
	<td class="is-one-third-width-tablet">
		<span class="break-text">
			  <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.routebase.routeexistingfiles?view=netframework-4.8#System_Web_Routing_RouteBase_RouteExistingFiles" data-linktype="relative-path">Route<wbr>Existing<wbr>Files</a>
		</span>
	</td>
	<td class="summary">
		  <p><span data-ttu-id="b5851-121">获取或设置一个值，它指示 ASP.NET 路由是否应处理与现有文件匹配的 URL。</span><span class="sxs-lookup"><span data-stu-id="b5851-121">Gets or sets a value that indicates whether ASP.NET routing should handle URLs that match an existing file.</span></span></p>

		(继承自   <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.routebase?view=netframework-4.8" data-linktype="relative-path">RouteBase</a>)
	</td>
        	</tr>
        	<tr>	
	  <td class="is-one-third-width-tablet">
	<span class="break-text">
		<a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.routehandler?view=netframework-4.8#System_Web_Routing_Route_RouteHandler" data-linktype="relative-path">Route<wbr>Handler</a>
	</span>
</td>
	<td class="summary"> 
		<p><span data-ttu-id="774fe-193">获取或设置处理路由的请求的对象。</span><span class="sxs-lookup"><span data-stu-id="774fe-193">Gets or sets the object that processes requests for the route.</span></span></p>

	</td>

        	</tr>
        	<tr>	
	  <td class="is-one-third-width-tablet">
	<span class="break-text">
		<a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.url?view=netframework-4.8#System_Web_Routing_Route_Url" data-linktype="relative-path">Url</a>
	</span>
</td>
	<td class="summary"> 
		<p><span data-ttu-id="774fe-196">获取或设置路由的 URL 模式。</span><span class="sxs-lookup"><span data-stu-id="774fe-196">Gets or sets the URL pattern for the route.</span></span></p>

	</td>

        	</tr>
	</tbody></table></div>


	<h2 id="methods" class="heading-anchor"><a class="anchor-link docon docon-link" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#methods" aria-labelledby="methods"></a>
		方法
	</h2>
	<div class="table-scroll-wrapper"><table class="nameValue table is-left-aligned is-stacked-mobile"><caption class="visually-hidden">方法</caption>
        	<tbody><tr>	
	<td class="is-one-third-width-tablet">
		<span class="break-text">
			  <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.object.equals?view=netframework-4.8#System_Object_Equals_System_Object_" data-linktype="relative-path">Equals(Object)</a>
		</span>
	</td>
	<td class="summary">
		  <p><span data-ttu-id="5fcb1-130">确定指定对象是否等于当前对象。</span><span class="sxs-lookup"><span data-stu-id="5fcb1-130">Determines whether the specified object is equal to the current object.</span></span></p>

		(继承自   <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.object?view=netframework-4.8" data-linktype="relative-path">Object</a>)
	</td>
        	</tr>
        	<tr>	
	<td class="is-one-third-width-tablet">
		<span class="break-text">
			  <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.object.gethashcode?view=netframework-4.8#System_Object_GetHashCode" data-linktype="relative-path">Get<wbr>Hash<wbr>Code()</a>
		</span>
	</td>
	<td class="summary">
		  <p><span data-ttu-id="5fcb1-345">作为默认哈希函数。</span><span class="sxs-lookup"><span data-stu-id="5fcb1-345">Serves as the default hash function.</span></span></p>

		(继承自   <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.object?view=netframework-4.8" data-linktype="relative-path">Object</a>)
	</td>
        	</tr>
        	<tr>	
	  <td class="is-one-third-width-tablet">
	<span class="break-text">
		<a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.getroutedata?view=netframework-4.8#System_Web_Routing_Route_GetRouteData_System_Web_HttpContextBase_" data-linktype="relative-path">Get<wbr>Route<wbr>Data(Http<wbr>Context<wbr>Base)</a>
	</span>
</td>
	<td class="summary"> 
		<p><span data-ttu-id="774fe-176">返回有关所请求路由的信息。</span><span class="sxs-lookup"><span data-stu-id="774fe-176">Returns information about the requested route.</span></span></p>

	</td>

        	</tr>
        	<tr>	
	<td class="is-one-third-width-tablet">
		<span class="break-text">
			  <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.object.gettype?view=netframework-4.8#System_Object_GetType" data-linktype="relative-path">Get<wbr>Type()</a>
		</span>
	</td>
	<td class="summary">
		  <p><span data-ttu-id="5fcb1-430">获取当前实例的 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.type?view=netframework-4.8" data-linktype="relative-path">Type</a>。</span><span class="sxs-lookup"><span data-stu-id="5fcb1-430">Gets the <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.type?view=netframework-4.8" data-linktype="relative-path">Type</a> of the current instance.</span></span></p>

		(继承自   <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.object?view=netframework-4.8" data-linktype="relative-path">Object</a>)
	</td>
        	</tr>
        	<tr>	
	  <td class="is-one-third-width-tablet">
	<span class="break-text">
		<a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.getvirtualpath?view=netframework-4.8#System_Web_Routing_Route_GetVirtualPath_System_Web_Routing_RequestContext_System_Web_Routing_RouteValueDictionary_" data-linktype="relative-path">Get<wbr>Virtual<wbr>Path(Request<wbr>Context, Route<wbr>Value<wbr>Dictionary)</a>
	</span>
</td>
	<td class="summary"> 
		<p><span data-ttu-id="774fe-181">返回与路由关联的 URL 的相关信息。</span><span class="sxs-lookup"><span data-stu-id="774fe-181">Returns information about the URL that is associated with the route.</span></span></p>

	</td>

        	</tr>
        	<tr>	
	<td class="is-one-third-width-tablet">
		<span class="break-text">
			  <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.object.memberwiseclone?view=netframework-4.8#System_Object_MemberwiseClone" data-linktype="relative-path">Memberwise<wbr>Clone()</a>
		</span>
	</td>
	<td class="summary">
		  <p><span data-ttu-id="5fcb1-447">创建当前 <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.object?view=netframework-4.8" data-linktype="relative-path">Object</a> 的浅表副本。</span><span class="sxs-lookup"><span data-stu-id="5fcb1-447">Creates a shallow copy of the current <a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.object?view=netframework-4.8" data-linktype="relative-path">Object</a>.</span></span></p>

		(继承自   <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.object?view=netframework-4.8" data-linktype="relative-path">Object</a>)
	</td>
        	</tr>
        	<tr>	
	  <td class="is-one-third-width-tablet">
	<span class="break-text">
		<a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route.processconstraint?view=netframework-4.8#System_Web_Routing_Route_ProcessConstraint_System_Web_HttpContextBase_System_Object_System_String_System_Web_Routing_RouteValueDictionary_System_Web_Routing_RouteDirection_" data-linktype="relative-path">Process<wbr>Constraint(Http<wbr>Context<wbr>Base, Object, String, Route<wbr>Value<wbr>Dictionary, Route<wbr>Direction)</a>
	</span>
</td>
	<td class="summary"> 
		<p><span data-ttu-id="774fe-189">确定参数值是否与该参数的约束匹配。</span><span class="sxs-lookup"><span data-stu-id="774fe-189">Determines whether a parameter value matches the constraint for that parameter.</span></span></p>

	</td>

        	</tr>
        	<tr>	
	<td class="is-one-third-width-tablet">
		<span class="break-text">
			  <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.object.tostring?view=netframework-4.8#System_Object_ToString" data-linktype="relative-path">To<wbr>String()</a>
		</span>
	</td>
	<td class="summary">
		  <p><span data-ttu-id="5fcb1-486">返回表示当前对象的字符串。</span><span class="sxs-lookup"><span data-stu-id="5fcb1-486">Returns a string that represents the current object.</span></span></p>

		(继承自   <a class="xref" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.object?view=netframework-4.8" data-linktype="relative-path">Object</a>)
	</td>
        	</tr>
	</tbody></table></div>







	 <h2 id="---" class="heading-anchor"><a class="anchor-link docon docon-link" href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#---" aria-labelledby="---"></a>适用于</h2>
	 <div class="table-scroll-wrapper moniker-applies-to-table">
      <table class="table has-border has-inner-borders has-header-background has-row-header-background"><caption class="visually-hidden">适用于</caption>
        <thead><!----><tr>
		<th scope="col"><!---->产品<!----></th>
		<th scope="col"><!---->版本<!----></th>
	</tr><!----></thead><tbody><!----><!---->
			<tr>
				<th scope="row"><!---->.NET Framework<!----></th>
				<td><!---->3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 <!----></td>
			</tr>
		<!----><!----></tbody>
      </table>
    </div>



						<!-- </content> -->

						</main>

						<!-- page rating section -->
								<div class="is-hidden-desktop has-border-top has-margin-top-large has-padding-top-large binary-rating-holder">
									
	
	

	<div class="feedback-verbatim has-border-bottom has-padding-bottom-large has-margin-bottom-small" data-bi-name="rating">
    <div class="binary-rating">
        <div class="binary-rating-buttons">
				<h3 class="has-text-weight-semibold has-margin-top-none has-margin-bottom-small is-size-h4 has-margin-bottom-medium">此页面有帮助吗?</h3>
			<div>
                <button class="thumb-rating like has-inner-focus" title="是" data-bi-name="rating-yes" aria-expanded="false" data-bi-sat="1" aria-controls="rating-container-desktop">
                    <span aria-hidden="true" class="icon docon docon-like"></span>
                    <span>是</span>
                </button>
                <button class="thumb-rating dislike has-inner-focus" title="否" data-bi-name="rating-no" data-bi-sat="0" aria-expanded="false" aria-controls="rating-container-desktop">
                    <span aria-hidden="true" class="icon docon docon-dislike"></span>
                    <span>否</span>
                </button>
            </div>
        </div>
        <form class="feedback-verbatim-form is-hidden" id="rating-container-desktop">
            <div class="verbatim-textarea box is-relative has-box-shadow-none has-border has-margin-top-small has-padding-extra-small is-size-extra-small">
                <label for="rating-textarea-desktop" class="visually-hidden">还有其他反馈吗？</label>
                <textarea id="rating-textarea-desktop" rows="4" maxlength="999" placeholder="还有其他反馈吗？" required="" class="textarea has-border-none has-box-shadow-none has-inner-focus"></textarea>
            </div>
            <div class="buttons is-right has-margin-top-medium has-margin-right-extra-small">
                <button class="skip-rating button is-transparent has-text-primary is-small has-border-none" type="button">跳过</button>
                <button class="submit-rating button is-primary is-small" data-bi-name="rating-verbatim" disabled="" type="submit">提交</button>
            </div>
        </form>
    </div>
    <div class="thankyou-rating is-hidden" tabindex="-1">
        <p>谢谢。</p>
    </div>
</div>									</div>
						<!-- end page rating section -->


						<!-- recommendations section -->
						<!-- end recommendations section -->

						<!-- feedback section -->
						<!-- end feedback section -->

						<!-- feedback report section -->
						<!-- end feedback report section -->

						<div class="footerContainer is-visible-interactive has-default-focus ">



	<footer id="footer-interactive" data-bi-name="footer" class="footer-layout">

    <div class="is-flex is-full-height has-padding-right-extra-large-desktop">
			<a data-mscc-ic="false" class="locale-selector-link has-flex-shrink-none" href="https://docs.microsoft.com/zh-cn/locale?target=https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0" data-bi-name="select-locale"><span class="icon docon docon-world is-size-large has-margin-right-small" aria-hidden="true"></span><span class="local-selector-link-text">中文 (简体)</span></a>
		<div class="has-margin-left-medium has-margin-right-medium has-flex-shrink-none">
<div class="dropdown has-caret-up">
	<button class="dropdown-trigger button is-transparent is-small is-icon-only-touch has-inner-focus theme-dropdown-trigger" aria-controls="theme-menu-interactive" aria-expanded="false" title="主题" data-bi-name="theme">
		<span class="icon">
			<span class="docon docon-sun" aria-hidden="true"></span>
		</span>
		<span>主题</span>
	</button>
	<div class="dropdown-menu" id="theme-menu-interactive" role="menu">
		<ul class="theme-selector has-padding-small">
			<li class="theme is-block">
				<button class="button is-text is-small theme-control is-fullwidth has-flex-justify-content-start is-selected" data-theme-to="light" aria-pressed="true">
					<span class="theme-light has-margin-right-small">
						<span class="theme-selector-icon css-variable-support has-border is-inline-block has-body-background" aria-hidden="true">
							<svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14">
								<rect width="22" height="14" class="has-fill-body-background"></rect>
								<rect x="5" y="5" width="12" height="4" class="has-fill-secondary"></rect>
								<rect x="5" y="2" width="2" height="1" class="has-fill-secondary"></rect>
								<rect x="8" y="2" width="2" height="1" class="has-fill-secondary"></rect>
								<rect x="11" y="2" width="3" height="1" class="has-fill-secondary"></rect>
								<rect x="1" y="1" width="2" height="2" class="has-fill-secondary"></rect>
								<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary"></rect>
								<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary"></rect>
							</svg>
						</span>
					</span>
					<span role="menuitem">
亮					</span>
				</button>
			</li>
			<li class="theme is-block">
				<button class="button is-text is-small theme-control is-fullwidth has-flex-justify-content-start" data-theme-to="dark" aria-pressed="false">
					<span class="theme-dark has-margin-right-small">
						<span class="has-border theme-selector-icon css-variable-support is-inline-block has-body-background" aria-hidden="true">
							<svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14">
								<rect width="22" height="14" class="has-fill-body-background"></rect>
								<rect x="5" y="5" width="12" height="4" class="has-fill-secondary"></rect>
								<rect x="5" y="2" width="2" height="1" class="has-fill-secondary"></rect>
								<rect x="8" y="2" width="2" height="1" class="has-fill-secondary"></rect>
								<rect x="11" y="2" width="3" height="1" class="has-fill-secondary"></rect>
								<rect x="1" y="1" width="2" height="2" class="has-fill-secondary"></rect>
								<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary"></rect>
								<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary"></rect>
							</svg>
						</span>
					</span>
					<span role="menuitem">
暗					</span>
				</button>
			</li>
			<li class="theme is-block">
				<button class="button is-text is-small theme-control is-fullwidth has-flex-justify-content-start" data-theme-to="high-contrast" aria-pressed="false">
					<span class="theme-high-contrast has-margin-right-small">
						<span class="has-border theme-selector-icon css-variable-support is-inline-block has-body-background" aria-hidden="true">
							<svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14">
								<rect width="22" height="14" class="has-fill-body-background"></rect>
								<rect x="5" y="5" width="12" height="4" class="has-fill-secondary"></rect>
								<rect x="5" y="2" width="2" height="1" class="has-fill-secondary"></rect>
								<rect x="8" y="2" width="2" height="1" class="has-fill-secondary"></rect>
								<rect x="11" y="2" width="3" height="1" class="has-fill-secondary"></rect>
								<rect x="1" y="1" width="2" height="2" class="has-fill-secondary"></rect>
								<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary"></rect>
								<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary"></rect>
							</svg>
						</span>
					</span>
					<span role="menuitem">
高对比度					</span>
				</button>
			</li>
		</ul>
	</div>
</div>		</div>
	</div>
    <ul class="links" data-bi-name="footerlinks">
		<li class="manage-cookies-holder" hidden=""></li>
			<li><a data-mscc-ic="false" href="https://docs.microsoft.com/zh-cn/previous-versions/" data-bi-name="archivelink">旧版文档</a></li>
			<li><a data-mscc-ic="false" href="https://docs.microsoft.com/zh-cn/teamblog" data-bi-name="bloglink">博客</a></li>
			<li><a data-mscc-ic="false" href="https://docs.microsoft.com/zh-cn/contribute" data-bi-name="contributorGuide">参与</a></li>
				<li><a data-mscc-ic="false" href="https://go.microsoft.com/fwlink/?LinkId=521839" data-bi-name="privacy">隐私和 Cookie</a></li>
			<li><a data-mscc-ic="false" href="https://docs.microsoft.com/zh-cn/legal/termsofuse" data-bi-name="termsofuse">使用条款</a></li>
				<li><a data-mscc-ic="false" href="https://aka.ms/sitefeedback" data-bi-name="feedback">网站反馈</a></li>
			<li><a data-mscc-ic="false" href="https://www.microsoft.com/en-us/legal/intellectualproperty/Trademarks/EN-US.aspx" data-bi-name="trademarks">商标</a></li>
		<li>© Microsoft 2021</li>
    </ul>
</footer>
						</div>
					</div>

					<div class="is-size-small right-container column is-one-quarter is-one-fifth-desktop is-hidden-mobile is-hidden-tablet-only" data-bi-name="pageactions" role="complementary" aria-label="页面操作">
						<div id="affixed-right-container" class="doc-outline is-fixed is-vertically-scrollable" style="width: 172.938px; top: 225.5px; bottom: 24px;">
								
	
	

	<div class="feedback-verbatim has-border-bottom has-padding-bottom-small has-margin-bottom-small" data-bi-name="rating">
    <div class="binary-rating">
        <div class="binary-rating-buttons">

				<h3 class="has-text-weight-semibold has-margin-top-none has-margin-bottom-small">此页面有帮助吗?</h3>
			<div>
                <button class="thumb-rating like has-inner-focus" title="是" data-bi-name="rating-yes" aria-expanded="false" data-bi-sat="1" aria-controls="rating-container-mobile">
                    <span aria-hidden="true" class="icon docon docon-like"></span>
                    <span>是</span>
                </button>
                <button class="thumb-rating dislike has-inner-focus" title="否" data-bi-name="rating-no" data-bi-sat="0" aria-expanded="false" aria-controls="rating-container-mobile">
                    <span aria-hidden="true" class="icon docon docon-dislike"></span>
                    <span>否</span>
                </button>
            </div>
        </div>
        <form class="feedback-verbatim-form is-hidden" id="rating-container-mobile">
            <div class="verbatim-textarea box is-relative has-box-shadow-none has-border has-margin-top-small has-padding-extra-small is-size-extra-small">
                <label for="rating-textarea-mobile" class="visually-hidden">还有其他反馈吗？</label>
                <textarea id="rating-textarea-mobile" rows="4" maxlength="999" placeholder="还有其他反馈吗？" required="" class="textarea has-border-none has-box-shadow-none has-inner-focus"></textarea>
            </div>
            <div class="buttons is-right has-margin-top-medium has-margin-right-extra-small">
                <button class="skip-rating button is-transparent has-text-primary is-small has-border-none" type="button">跳过</button>
                <button class="submit-rating button is-primary is-small" data-bi-name="rating-verbatim" disabled="" type="submit">提交</button>
            </div>
        </form>
    </div>
    <div class="thankyou-rating is-hidden" tabindex="-1">
        <p>谢谢。</p>
    </div>
</div>							<nav id="side-doc-outline" data-bi-name="intopic toc" role="navigation" aria-label="文章大纲">
								<h3>本文内容</h3>
							<ol><li class="selected"><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#definition">定义</a></li><li><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#examples">示例</a></li><li><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#remarks">注解</a></li><li><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#constructors">构造函数</a></li><li><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#properties">属性</a></li><li><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#methods">方法</a></li><li><a href="https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0#---">适用于</a></li></ol></nav>
						</div>
					</div>

					<!--end of div.columns -->
				</div>

			<!--end of .primary-holder -->
			</section>

			<aside id="interactive-container" class="interactive-container is-visible-interactive column has-body-background-dark ">
			</aside>
		</div>

		<!--end of .mainContainer -->
	</div>

	<div class="footerContainer has-default-focus is-hidden-interactive ">



	<footer id="footer" data-bi-name="footer" class="footer-layout uhf-container has-padding" role="contentinfo">

    <div class="is-flex is-full-height has-padding-right-extra-large-desktop">
			<a data-mscc-ic="false" class="locale-selector-link has-flex-shrink-none" href="https://docs.microsoft.com/zh-cn/locale?target=https://docs.microsoft.com/zh-cn/dotnet/api/system.web.routing.route?view=netframework-4.8&amp;viewFallbackFrom=net-5.0" data-bi-name="select-locale"><span class="icon docon docon-world is-size-large has-margin-right-small" aria-hidden="true"></span><span class="local-selector-link-text">中文 (简体)</span></a>
		<div class="has-margin-left-medium has-margin-right-medium has-flex-shrink-none">
<div class="dropdown has-caret-up">
	<button class="dropdown-trigger button is-transparent is-small is-icon-only-touch has-inner-focus theme-dropdown-trigger" aria-controls="theme-menu" aria-expanded="false" title="主题" data-bi-name="theme">
		<span class="icon">
			<span class="docon docon-sun" aria-hidden="true"></span>
		</span>
		<span>主题</span>
	</button>
	<div class="dropdown-menu" id="theme-menu" role="menu">
		<ul class="theme-selector has-padding-small">
			<li class="theme is-block">
				<button class="button is-text is-small theme-control is-fullwidth has-flex-justify-content-start is-selected" data-theme-to="light" aria-pressed="true">
					<span class="theme-light has-margin-right-small">
						<span class="theme-selector-icon css-variable-support has-border is-inline-block has-body-background" aria-hidden="true">
							<svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14">
								<rect width="22" height="14" class="has-fill-body-background"></rect>
								<rect x="5" y="5" width="12" height="4" class="has-fill-secondary"></rect>
								<rect x="5" y="2" width="2" height="1" class="has-fill-secondary"></rect>
								<rect x="8" y="2" width="2" height="1" class="has-fill-secondary"></rect>
								<rect x="11" y="2" width="3" height="1" class="has-fill-secondary"></rect>
								<rect x="1" y="1" width="2" height="2" class="has-fill-secondary"></rect>
								<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary"></rect>
								<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary"></rect>
							</svg>
						</span>
					</span>
					<span role="menuitem">
亮					</span>
				</button>
			</li>
			<li class="theme is-block">
				<button class="button is-text is-small theme-control is-fullwidth has-flex-justify-content-start" data-theme-to="dark" aria-pressed="false">
					<span class="theme-dark has-margin-right-small">
						<span class="has-border theme-selector-icon css-variable-support is-inline-block has-body-background" aria-hidden="true">
							<svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14">
								<rect width="22" height="14" class="has-fill-body-background"></rect>
								<rect x="5" y="5" width="12" height="4" class="has-fill-secondary"></rect>
								<rect x="5" y="2" width="2" height="1" class="has-fill-secondary"></rect>
								<rect x="8" y="2" width="2" height="1" class="has-fill-secondary"></rect>
								<rect x="11" y="2" width="3" height="1" class="has-fill-secondary"></rect>
								<rect x="1" y="1" width="2" height="2" class="has-fill-secondary"></rect>
								<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary"></rect>
								<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary"></rect>
							</svg>
						</span>
					</span>
					<span role="menuitem">
暗					</span>
				</button>
			</li>
			<li class="theme is-block">
				<button class="button is-text is-small theme-control is-fullwidth has-flex-justify-content-start" data-theme-to="high-contrast" aria-pressed="false">
					<span class="theme-high-contrast has-margin-right-small">
						<span class="has-border theme-selector-icon css-variable-support is-inline-block has-body-background" aria-hidden="true">
							<svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14">
								<rect width="22" height="14" class="has-fill-body-background"></rect>
								<rect x="5" y="5" width="12" height="4" class="has-fill-secondary"></rect>
								<rect x="5" y="2" width="2" height="1" class="has-fill-secondary"></rect>
								<rect x="8" y="2" width="2" height="1" class="has-fill-secondary"></rect>
								<rect x="11" y="2" width="3" height="1" class="has-fill-secondary"></rect>
								<rect x="1" y="1" width="2" height="2" class="has-fill-secondary"></rect>
								<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary"></rect>
								<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary"></rect>
							</svg>
						</span>
					</span>
					<span role="menuitem">
高对比度					</span>
				</button>
			</li>
		</ul>
	</div>
</div>		</div>
	</div>
    <ul class="links" data-bi-name="footerlinks">
		<li class="manage-cookies-holder" hidden=""></li>
			<li><a data-mscc-ic="false" href="https://docs.microsoft.com/zh-cn/previous-versions/" data-bi-name="archivelink">旧版文档</a></li>
			<li><a data-mscc-ic="false" href="https://docs.microsoft.com/zh-cn/teamblog" data-bi-name="bloglink">博客</a></li>
			<li><a data-mscc-ic="false" href="https://docs.microsoft.com/zh-cn/contribute" data-bi-name="contributorGuide">参与</a></li>
				<li><a data-mscc-ic="false" href="https://go.microsoft.com/fwlink/?LinkId=521839" data-bi-name="privacy">隐私和 Cookie</a></li>
			<li><a data-mscc-ic="false" href="https://docs.microsoft.com/zh-cn/legal/termsofuse" data-bi-name="termsofuse">使用条款</a></li>
				<li><a data-mscc-ic="false" href="https://aka.ms/sitefeedback" data-bi-name="feedback">网站反馈</a></li>
			<li><a data-mscc-ic="false" href="https://www.microsoft.com/en-us/legal/intellectualproperty/Trademarks/EN-US.aspx" data-bi-name="trademarks">商标</a></li>
		<li>© Microsoft 2021</li>
    </ul>
</footer>
	</div>

	<div id="action-panel" role="region" aria-label="操作面板" class="action-panel has-default-focus" tabindex="-1"></div>


<div class="usabilla_live_button_container" role="button" tabindex="0" style="margin-top: 0px; position: fixed; width: 0px; height: 0px; z-index: 99999990; right: 0px; top: 50%; display: none;" aria-label="Usabilla Feedback Button"><iframe src="./Route 类 (System.Web.Routing) _ Microsoft Docs_files/saved_resource(2).html" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" data-tags="right" title="Usabilla Feedback Button" style="width: 0px; height: 0px; margin: 0px; padding: 0px; border: 0px; overflow: hidden; z-index: 9998; position: absolute; left: 0px; top: 0px; box-shadow: 0px 0px 0px; background-color: transparent;"></iframe></div></body></html>